Emacs符号';s值作为变量是无效的
我的emacs init文件中有以下代码-Emacs符号';s值作为变量是无效的,emacs,Emacs,我的emacs init文件中有以下代码- (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/solarized") (load-theme 'solarized-light t) 我得到以下错误- Symbol's value as variable is void: custom-theme-load-path 错误的回溯跟踪为- Debugger entered--Lisp error: (void-variable cus
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/solarized")
(load-theme 'solarized-light t)
我得到以下错误-
Symbol's value as variable is void: custom-theme-load-path
错误的回溯跟踪为-
Debugger entered--Lisp error: (void-variable custom-theme-load-path)
add-to-list(custom-theme-load-path "~/.emacs.d/themes/solarized")
eval-buffer(#<buffer *load*> nil "/home/kshitiz/.emacs" nil t) ; Reading at buffer position 69
load-with-code-conversion("/home/kshitiz/.emacs" "/home/kshitiz/.emacs" t t)
load("~/.emacs" t t)
#[nil "\205\264
调试器已输入--Lisp错误:(void变量自定义主题加载路径)
添加到列表(自定义主题加载路径“~/.emacs.d/themes/solarized”)
评估缓冲区(#nil)/home/kshitiz/.emacs“nil t);缓冲器位置69处的读数
使用代码转换加载(“/home/kshitiz/.emacs”“/home/kshitiz/.emacs”t)
荷载(“~/.emacs”t)
#[nil”\205\264
我做错了什么?这所依赖的主题化支持仅在Emacs 24.x中可用,但您正在运行Emacs 23.x。您的Emacs版本是什么?当您调用
添加到列表时,变量自定义主题加载路径
不存在。可能需要先加载定义变量的包。@abo abo aboGNU Emacs 23.4.1
@Barmar也许吧。但我遵循指南,它没有提到这样的事情。从那里的文档中可以看出:这个主题使用了从Emacs 24开始提供的新的内置主题支持。