zenburn-emacs
zenburn-emacs copied to clipboard
Update instructions for installation with 24.x included package.el
I'm running Emacs 24.3.1 with the included package.el. In this case, your instructions don't work:
To load it automatically on Emacs startup add this to your init file:
(load-theme 'zenburn t)
This is because with the included package.el, by default packages are loaded after the init file, so the zenburn symbol won't be available. (see "The reason automatic package loading..." in the manual).
There are ways around that, of course, but the simplest way is to add your calls to the after-init-hook list, so replace the above instruction with:
(add-hook 'after-init-hook (lambda () (load-theme 'zenburn t)))
This does have the negative effect that the theme is loaded later in the init process, and so your window will show default theming for a few secs while it loads, but the ways around that are probably out of scope of your short intro :)
good solution, thanks