Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update instructions for installation with 24.x included package.el #186

Open
jlargentaye opened this issue Jan 7, 2015 · 1 comment
Open

Comments

@jlargentaye
Copy link

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 :)

@jasonblewis
Copy link

good solution, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants