Bill Clementson's Blog

Bits and pieces (mostly Lisp-related) that I collect from the ether.

June 2007
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
May  Jul

My Emacs Color Themes

Friday, June 15, 2007

I sometimes get asked about the color theme that I use with Emacs. Actually, there are two custom themes that I've created that I use on different occasions. One has a white background and the other has a black background. When I'm switching between a lot of different Mac applications, I generally use the white background color theme as it clashes less with most Mac applications (the visual impact of swapping from a black background to a white one is pretty hard on my eyes):

Emacs with white background

However, if I'm doing a lot of coding and staying primarily in Emacs, I tend to favour the black background color theme. My black background custom theme is almost identical to the default colors for Emacs in the Mac terminal application (with a terminal type of "xterm-color"), so I have a consistent set of colors regardless of whether I'm working in a terminal emacs or Aquamacs Emacs (the emacs I usually use on my Mac). Here's a screenshot of the black background color theme next to the same file in terminal emacs:

Emacs with black background

I have a little function setup that switches between the two. When bc-color-theme is called, it changes the color theme to my black background theme. With a prefix arg, it changes the color theme to my white background theme. The code for the color themes and the switching function is here if anyone is interested (Note: I don't set all the same faces in each color theme as they were created at different times from different base themes).

emacs Copyright © 2007 by Bill Clementson