Kshitiz Sharma
Kshitiz Sharma

Reputation: 18597

Emacs symbol's value as variable is void

I have following code in my emacs init file -

(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/solarized")
(load-theme 'solarized-light t)

I get following error -

Symbol's value as variable is void: custom-theme-load-path

Backtrace of the error is -

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

What am I doing wrong?

Upvotes: 4

Views: 4864

Answers (1)

Barmar
Barmar

Reputation: 780889

The theming support that this depends on is only available in Emacs 24.x, but you're running Emacs 23.x.

Upvotes: 4

Related Questions