Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Make Aquamacs Color Theme Stick?

Tags:

emacs

macos

So, I do a M-x color-theme-select and select a theme. Then I to Options -> Save options. I restart and its still the black on white theme.

I tried - http://www.emacswiki.org/emacs/AquamacsFAQ

No use.

Tried downloading the theme (Charcoal Black) and put it in /Library/Preferences/Aquamacs\ Emacs/customize.el:

(load-theme 'charcoal-black t t)
(enable-theme 'charcoal-black)

Still not working. What to do now?

like image 609
Sreejith Ramakrishnan Avatar asked Feb 24 '14 13:02

Sreejith Ramakrishnan


1 Answers

There might certainly be better ways to solve it than this, but this works for me, there's no reason why it shouldn't work for you, and it has the merit of being instantly understandable:

  • The function color-theme-initialize has to be run before a theme is chosen. This is done for you by color-theme-select, but you must do it manually or in an init file before specifying the theme.
  • It seems many themes have a choice function: e.g color-theme-charcoal-black chooses charcoal-black. This and many others are available after the color themes have been init'ed, but not before.

Thus, I have in my Preferences.el these two lines:

(color-theme-initialize)
(color-theme-charcoal-black)
like image 76
fcar Avatar answered Oct 17 '22 20:10

fcar