Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I prefer dark color themes for editing source codes while programming but I'd like to use a brighter background with black characters when writing text in org-mode. How can I set different color themes on different frames in Emacs? If I switch to another color theme, it changes across all frames.

I use GNU Emacs 23.1.1 on OS X 10.6.

share|improve this question
up vote 2 down vote accepted

I came to the solution in Juba's blog. Package color-theme defines variable color-theme-is-global which decides if the given color theme should be installed on all frames or on only selected.

A possible use for this variable is dynamic binding. Here is a larger example to put in your ~/.emacs; it will make the Blue Sea color theme the default used for the first frame, and it will create two additional frames with different color themes.


(require 'color-theme)
;; set default color theme
;; create some frames with different color themes
(let ((color-theme-is-global nil))
  (select-frame (make-frame))
  (select-frame (make-frame))
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.