101004 Emacs の設定

Emacs の設定をしていた。

; load-path の設定
(setq load-path
      (append
       (list
	(expand-file-name "~/.emacs.d/elisp/")
	(expand-file-name "~/.emacs.d/conf/"))
       load-path))
;; auto-install.el
;; http://www.emacswiki.org/emacs/download/auto-install.el
(require 'auto-install)
; Emacs Lisp をインストールするディレクトリを指定する
(setq auto-install-directory "~/.emacs.d/elisp/")
; EmacsWiki に登録されている Emacs Lisp の名前を取得する
(auto-install-update-emacswiki-package-name t)
; install-elisp.el とコマンド名を同期する
(auto-install-compatibility-setup)
;; python-mode.el
;; http://launchpadlibrarian.net/21781107/python-mode.el
(setq auto-mode-alist
      (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist
      (cons '("python" . python-mode) interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python edeiting mode." t)
; paren-mode  対応する括弧を強調表示する
(setq show-paren-delay 0) ; 表示までの秒数
(show-paren-mode t) ; 有効化

Python モードはデフォルトで入っている python.el があまりよくないらしい。もう少しやることはあるのだけれど、もう寝るので時間切れ。

今日覚えたコマンド

M-x load-file

↑このあと、読み込むファイルを指定する。.emacs の設定を反映させるのに多用。

cp ファイル名 ディレクトリ名

↑ファイルをディレクトリにコピー

雑感

Python の勉強を始めてから思ったのだけれど、こういった技術系のことをやるなら英語キーボードのほうが入力しやすいと思う。というか、自分の場合は日本語キーボードだと効率悪そうだと感じた。
(自分が今のところ)頻繁に入力する記号のひとつとして等号 = があるけれど、これをいちいち shift を押しながら入力していたら嫌になってしまいそう。
でも、ネット上で見かけるプログラマーの方が全員英語キーボードかというとそうでもないみたいだし、少し不思議。「慣れ」でカバーされているのだろうか。