Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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.

setup:

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

Your Answer

 
discard

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.