Created
May 6, 2010 09:51
-
-
Save fukusaka/391971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; CocoaEmacs 対応 | |
(when (eq window-system 'ns) | |
(require 'ns-win) | |
;; JISキーボード円記号/バックスラッシュ対応 | |
(mac-translate-from-yen-to-backslash) | |
;; Option/Command キー を Super/Meta に割当 | |
(setq ns-command-modifier 'meta) | |
(setq ns-alternate-modifier 'super) | |
;; システムへ修飾キーを渡さない設定 | |
(setq mac-pass-control-to-system nil) | |
(setq mac-pass-command-to-system nil) | |
(setq mac-pass-option-to-system nil) | |
(define-key global-map [ns-drag-file] 'ns-find-file) | |
) | |
;; Cocoa inline_path 対応 | |
(if (featurep 'ns) | |
(set-language-info "Japanese" 'input-method "MacOSX")) | |
;; 日本語環境 | |
(set-language-environment 'Japanese) | |
(cond | |
;; UTF8サポートありならば、優先してUTF-8を使う | |
((memq 'utf-8 coding-system-list) | |
(prefer-coding-system 'utf-8-unix) | |
(setenv "LANG" "ja_JP.UTF-8") | |
) | |
) | |
;; 常に新規ファイルは utf-8-unix を使いたい | |
(if (memq 'utf-8 coding-system-list) | |
(setq-default buffer-file-coding-system 'utf-8-unix)) | |
;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment