I am trying to get Emacs (v24.3.1) to load a new custom theme into created frames. That is, I have my default theme in my original frame, and all subsequent frames should get a separate theme (making it easy to identify the starting frame).
Here is what I still have:
;make new frames use a different custom theme (defun apply-custom-theme (frame) "Apply custom theme to a frame based on whether its a 'real' window or a console window." (select-frame frame) (if (window-system frame) (load-theme 'light-blue t) (load-theme 'tango-black t))) (add-hook 'after-make-frame-functions 'apply-custom-theme)
This works, except that the downloaded theme affects ALL frames, including the initial one. [I know that even without my hook, the "load-theme" in one frame will affect all frames.]
I know that I can achieve this with the older color theme function ... I'm curious to know if this can also be done with Emacs 24x custom themes (which will make it easy to create and customize new themes among other things).
emacs elisp
Troy folger
source share