たった一行書くだけで、Menloフォントでプログラミング
Mac OS 10.6で新しく導入されたフォント、Menloが綺麗だ。
ある一定周期ごとに色々設定を見直す癖があり、今回フォントを見なおしてみた。
emacsでMenloフォントを使うには、
dot.emacsに以下の一行を記述するだけで、Menloフォントになる。
(custom-set-faces '(default ((t (:height: 120 :background: "black" :foreground: "white" :weight normal :width: normal :slant normal :family "Menlo")))))
ちなみに、白背景を使っているかたは、:backgroundと:foregroundをひっくり返して欲しい。
その他、モードラインをもっと美しくするために、以下のように書いた。
(custom-set-faces '(mode-line ((t (:foreground "skyblue" :background "#222222" :box (:line-width 1 :color nil :style released-button))))))
さらに、選択領域がビビッドな青すぎるので、優しい色にしてみた。
(custom-set-faces '(region ((t (:foreground "black" :background "skyblue" )))))
このような少しの変更だけで、どんどん美しいエディタになるのは、emacsならではだ。