【问题标题】:Emacs symbol's value as variable is voidEmacs 符号作为变量的值是 void
【发布时间】:2013-12-06 11:15:02
【问题描述】:

我的 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

我做错了什么?

【问题讨论】:

  • 你的 Emacs 版本是多少?
  • 当您调用add-to-list 时,变量custom-theme-load-path 不存在。也许你需要先加载一个定义变量的包。
  • @abo-abo GNU Emacs 23.4.1
  • @Barmar 也许吧。但我正在关注here 指南,它没有提到这样的事情。
  • 来自那里的文档:此主题使用从 Emacs 24 开始提供的新内置主题支持。

标签: emacs


【解决方案1】:

这所依赖的主题支持仅在 Emacs 24.x 中可用,但您正在运行 Emacs 23.x。

【讨论】:

    猜你喜欢
    • 2014-08-05
    • 2017-03-05
    • 2014-10-20
    • 1970-01-01
    • 2013-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多