- 设置Emacs的HOME,可以在scratch buffer中输入:(insert (getenv "HOME"))查看
- 下载python-mode.el
- 用Emacs打开python-mode.el然后M-x byte-compile-file编译python-mode.el为elc
- C-h v查看load-path变量
- 在HOME/.emacs.d/init.el中添加(setq load-path (cons "D://emacs-23.1-bin-i386" load-path))
- 将py文件与python mode 关联,将python解释器与python-mode关联
- 下载color-theme.el,放入load-path,在init.el中加入:(require ‘color-theme),然后就可以用
M-x color-theme-select
来选择你喜欢的颜色主题了,它会打开一个列表,在每个列表项目上回车会应用那个颜色主题,如果选上了某个主题,按一下d
,会出现类似:color-theme-sitaramv-nt is an interactive compiled Lisp function in `color-theme.el'. (color-theme-sitaramv-nt) Black foreground on white background. Includes faces for font-lock, widget, custom, speedbar. [back]
的东西,其中那句
(color-theme-sitaramv-nt)
加入到你的~/.emacs
里面去,就可以永久应用这个颜色主题了。