Cannot load color-theme-.. from .emacs, but works with M-x color-theme-..

Asked by David Fendrich

When I put
(require 'color-theme)
(setq color-theme-is-global t)
(color-theme-subtle-hacker)
in my .emacs, I get:
"Symbol's function definition is void: color-theme-subtle-hacker"

Oddly enough, It works fine to switch with M-x color-theme-subtle-hacker, once emacs is started. Same for every other theme that I have tried.

I run emacs 23.3.1 and color-theme from the Ubuntu package emacs-goodies-el

Question information

Language:
English Edit question
Status:
Solved
For:
color-theme-el Edit question
Assignee:
No assignee Edit question
Solved by:
David Fendrich
Solved:
Last query:
Last reply:
Revision history for this message
David Fendrich (gurgeh) said :
#1

Aha.. I used an out of date tutorial for Ubuntu.

I needed a fourth line:
(require 'color-theme)
(setq color-theme-is-global t)
(color-theme-initialize)
(color-theme-subtle-hacker)