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.
Asked
Active
Viewed 1,678 times
2

Tiago Botelho
- 21
- 4
1 Answers
-1
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.

Howard
- 1
- 1
-
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. – Drew Feb 01 '16 at 16:27
M-x disable-theme
? – Trevoke Dec 10 '14 at 19:34package-list-packages
(and go down to the bottom) to get this. – David Gomes Dec 10 '14 at 20:09.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. – Jonathan Leech-Pepin Jan 09 '15 at 20:04