2007年4月24日星期二

Emacs + color-theme.el

给Emacs配色,最好的就是使用color-theme.el。
你可以从https://gna.org/projects/color-theme找到最新的color-theme.el的信息。
https://gna.org/files/?group=color-theme下载最新的包。
对Windows下的GNU Emacs
将压缩包中的 color-theme.el 和 themes 文件夹拷贝到 emacs程序文件夹下的lisp中。
修改 .emacs,在c:/下,添加如下的内容
;; color theme
(require 'color-theme)
(color-theme-initialize)
(color-theme-calm-forest) ;; case sensitive.
执行的内容分别是载入color-theme.el,初始化,使用配色方案Calm Forest。
对Cygwin
拷贝到cygwin\usr\share\emacs\site-lisp下即可。
同样修改.emacs,这个在home\yourusername目录下

可以通过M-x color-theme-select命令来更改或预览效果。

你可以在这里http://www.cs.cmu.edu/~maverick/GNUEmacsColorThemeTest/
预览各种颜色的效果,有C,LaTeX,Lisp,Perl等语言加亮显示的预览

没有评论: