emacs

Wrong initialization order in init.el

When you answer the prompt
Treat this theme as safe in future sessions? (y or n)
with "y", Emacs modifies init.el to remember themes you consider to be safe.
Depending on the content of your init.el file, it sometimes inserts this code after the actual call to load-theme.

If this has happend, you manually have to change the your init.el file from something like:


(load-theme 'solarized-dark)

(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes (quote ("82d2cac368ccdec2fcc7573f24c3f79654b78bf133096f9b40c20d97ec1d8016" "b1ca0ce11f45aaa5c0edea1a6b6b918b7dee6aa0" default))))

to


(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes (quote ("82d2cac368ccdec2fcc7573f24c3f79654b78bf133096f9b40c20d97ec1d8016" "b1ca0ce11f45aaa5c0edea1a6b6b918b7dee6aa0" default))))

(load-theme 'solarized-dark)

Taggings:

Emacs does not remember custom theme settings

After adding the following line to <quote>init.el</quote> <code> (load-theme 'solarized-dark) </code> Emacs asks the following 2 questions on every start: <cite>Loading a theme can run Lisp code. Really load (y or n)</cite> <cite>Treat this theme as safe in future sessions? (y or n)</cite> Answering both questions with "y" does have no effect, Emacs doesn't remember previous decisions.
Subscribe to emacs