Emacs24でtomorrow-themeを使う

chriskempson/tomorrow-theme · GitHub

Emacs24から入ったtheme機能を初めて使った上に、tomorrow-theme使えるようにするのにめっちゃ時間かかったので、誰かの助けになれば的な感じで書いておく。


  1. tomorrow-theme/GNU Emacsの中身を保存する。
  2. emacs.dの中にthemes/を作って、その中にtomorrow-themeのelファイルを入れる。
  3. 任意の設定ファイルを開いて下記を追加。
(add-to-list 'load-path "~/.emacs.d/themes")
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'tomorrow-night-eighties t)

以上。

tomorrow-themeは各テーマの中でcolor-theme-tomorrow.elに定義されてる関数を呼び出してるんだけど、custom-theme-load-path*-theme.elしかロードしないっぽい。 なので、load-pathもしてる。