Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. Join them; it only takes a minute:

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 have Emacs 24.5.1, installed zenburn-theme off of melpa-stable and loaded the theme in my .emacs with (load-theme 'zenburn). I like all the colours except the background. It's a bit too bright.

How do I set the background colour to a darker colour?

share|improve this question

You can modify zenburn's face definitions in your .emacs. I use this to avoid mucking up the background of other themes.

(with-eval-after-load "zenburn-theme"
     ;; original `(default ((t (:foreground ,zenburn-fg :background ,zenburn-bg))))
     `(default ((t (:foreground ,zenburn-fg :background ,zenburn-bg-1)))))))
share|improve this answer

You can change the color of the background by adding this to your .emacs file:

 '(default ((t (:background "blue"))))

Note, the core bit here is:

'(default ((t (:background "blue"))))

As you might already have custom-set-faces declared if you made any modifications previously.

share|improve this answer

You might also want to look at the hc-zenburn theme (hc-zenburntheme on MELPA). It probably changes more than just the background, but the darker background is all that I generally notice.

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.