.emacsの設定
私が使っているEmacsの設定ファイル.emacsはとりあえず今のところ、次のようになっている。WindowsでEmacsを扱おうとすると、日本語入力ができないのが一番の欠点であったが、それがあっけなく解消されてしまったのにはとても驚いた。その設定は行数にしてたった6行である。
ちなみに
;; 初期設定の部分 (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(case-fold-search t) '(current-language-environment "ASCII") '(global-font-lock-mode t nil (font-lock)) '(show-paren-mode t nil (paren)) '(transient-mark-mode t)) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. ) ;; WindowsのEmacsで日本語入力ができるようにさせる (set-terminal-coding-system 'sjis-dos) (set-keyboard-coding-system 'sjis-dos) (set-language-environment "Japanese") (set-buffer-file-coding-system 'sjis-dos) (set-selection-coding-system 'sjis-dos) (set-next-selection-coding-system 'sjis-dos) ;; オライリーのC実践プログラムより(一部改変) (defun c-begin-comment-box () "Insert the beginning of a comment, followed by a string of asterisks." (interactive) (insert "/************************************************\n")) (defun c-end-comment-box () "Insert a string of asterisks, followed by the end of a comment." (interactive) (insert "************************************************/\n")) (add-hook 'c-mode-hook '(lambda () (define-key c-mode-map "\M-cb" 'c-begin-comment-box) (define-key c-mode-map "\M-ce" 'c-end-comment-box)))