I am trying to change my emacs theme to spacegray because my current one is not the most appealing but when i to
M-x load-theme spacegray
the theme only loads on the line numbers, and when i reload emacs with c-x c-c
the previous theme comes back again.
1 Answer
I had a similar problem, and here's how I fixed it:
I opened my init.el file and commented the last line of code:
'(default ((((class color) (min-colors 4096)) (:foreground "#5f5f5f" :background "#fdfde7")) (((class color) (min-colors 256)) (:foreground "#5f5f5f" :background "#fdfde7")) (((class color) (min-colors 89)) (:foreground "#5f5f5f" :background "#fdfde7")))))
and add the following code:
'(default ((t (:inherit nil :stipple nil :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :foundry "apple" :family "Menlo")))))
Restart Emacs, and you should be able to change theme.
-
1Not a great answer, IMO. (1) You don't show the context for that "last line" of your init file. (2) I'm guessing that the context is
custom-set-faces
. If so, the comment preceding it warns you explicitly not to edit it directly, but to change it using Customize. (3) You don't explain what your answer tries to do, or why.– DrewFeb 1, 2016 at 16:27
M-x disable-theme
?.emacs
that involveload
ing orrequire
ing anything theme related (the theme in question looks like Solarized I think). If you have a separate file for yourcustom-set-variables
, then share anything there concerning themes.