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)