Reputation: 4043
I searched everywhere and mostly people suggest the following code for setting a default color theme:
(require 'color-theme)
(color-theme-name)
However, this doesn't work. When I start emacs I get this error:
Warning (initialization): An error occurred while loading `/home/epsilonvector/.emacs':
Symbol's function definition is void: color-theme-name
To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace.
This happens for every theme name, even ones whose correctness I'm sure of.
What am I missing?
Upvotes: 0
Views: 2265
Reputation: 1474
Try to insert (color-theme-initialize)
in between the require and the call to the theme name.
Upvotes: 3
Reputation: 81684
First, color-theme
is a package that you have to install; I don't believe it's included in any version of emacs. The download link is here.
Second, you're not supposed to literally use the symbol color-theme-name
, but rather the name of the color scheme: color-theme-hober
, for example.
Upvotes: 1