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

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:

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

