我在我的Emacs初始化文件中有以下代码 -
(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
我做错了什么?
add-to-list
时,变量custom-theme-load-path
不存在。也许您需要先加载定义该变量的软件包。 - BarmarGNU Emacs 23.4.1
- Kshitiz Sharma