Another custom theme (NOT a color theme) on an emacs frame?

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).

+8
emacs elisp
source share
1 answer

I don’t think that support for custom themes can currently create themes related to the frame. Perhaps it supports (with a little extra coding) different themes for different kinds of frames (for example, one theme for tty and another for X11), tho.

I suggest you Mx report-emacs-bug request a new (set) function for this situation.

+2
source share

All Articles