Emacsの最低限の設定


設定ファイル

ホームディレクトリに.emacs(ドット・イーマークス)という設定ファイルを 作ります。

以下はFreeWnnで日本語を入力する場合の最低限の設定です。

;;;; Emacs ;;;;


;; For Japanese
(set-language-environment 'Japanese)
;; for kotoeri
(set-keyboard-coding-system 'sjis-mac)
(set-clipboard-coding-system 'sjis-mac)
;; for JTerminal
(set-terminal-coding-system 'euc-jp-unix)
(set-default-coding-systems 'euc-jp-unix)
(set-buffer-file-coding-system 'euc-jp-unix)
(setq default-process-coding-system '(undecided . euc-jp-unix))
(setq file-name-coding-system 'utf-8) 

;; egg-wnn
(setq wnn-jserver "localhost")
(load "egg")
(setq default-input-method "japanese-egg-wnn")

;; Window size & Color
(setq initial-frame-alist '((width . 80) (height . 30)))
(set-background-color "Black")
(set-foreground-color "LightGray")
(set-cursor-color "Gray")