emacs 不能打开加载文件color-theme

Vim、Emacs配置和使用
回复
firestone
帖子: 31
注册时间: 2008-07-21 10:02

emacs 不能打开加载文件color-theme

#1

帖子 firestone » 2011-03-17 16:16

按照加载主题的步骤,

把color-theme.el和themes文件夹拷贝到~/.emacs.d目录下

然后在.emcas中写下
(require 'color-theme)
(color-theme-initialize)
(color-theme-charcoal-black)

但是M-x eval-buffer重新加载后,报错说 cannot open load file:color-theme

文件权限也没有任何问题,可读可写,我是个新手,请问怎么回事?谢谢!
firestone
帖子: 31
注册时间: 2008-07-21 10:02

Re: emacs 不能打开加载文件color-theme

#2

帖子 firestone » 2011-03-17 16:37

后来用
(load-file "~/.emacs.d/color-theme.el")
(color-theme-charcoal-black)
把问题解决了,但是我上面写的似乎也没有问题,不知道是什么原因,谁能帮解答一下
头像
wenstream
帖子: 186
注册时间: 2008-06-18 22:02

Re: emacs 不能打开加载文件color-theme

#3

帖子 wenstream » 2011-03-25 9:48

楼上正解,没有加load-path
回复