I have been spending time to tweak and design my own color themes since 2007, and published previous
versions (switch-color-theme-matlab-latex.el) on this blog (http://zhangda.wordpress.com/2009/04/08/my-own-emacs-color-themes-i-use-f6-c-u-f6-to-switch-between-them/).
I think now it’s a good time to move the package to the more popular host, marmalade, so anyone interested could use the
emacs package management tool (package.el) to obtain it. If marmalade is included in your package-archives list (see the
code below for this), you should be able to see the package “color-theme-dawn-night” after firing up list-packages.
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") ("marmalade" . "http://marmalade-repo.org/packages/")))
You can also download the color-theme-dawn-night.el via http://marmalade-repo.org/packages/color-theme-dawn-night-1.0.el
Here is a brief description of the color theme:
color-theme-dawn-night.el contains two customized color themes:
is a dark-background theme, designed for normal programming,
org/muse mode editing and LaTeX editing. The foreground colors are designed
to be somewhat aqua, with a bright and warm feeling.
is designed with a bright and warm background. The color setup was inspired
by the light yellow background and visual effect of the Matlab programming
Call function switch-dawn-night to change to the dark face, and call C-u
switch-dawn-night for the bright background face.
Install the theme:
(1)Place color-theme-dawn-night.el into your load-path.
(2)In your .emacs, add:
(global-set-key [f6] ‘switch-dawn-night)
One good thing to tweak the color theme is that you can have a full control of the appearance of Emacs. For example, I adjusted different faces of tabbar to make them appear uniformly and as if in a real tabbar system. Another example is the color of the line numbers on the left fringe — I made them slim and in a “dark gold” color.
Here are some screen shots of my color themes.
color theme dawn night: night
color theme dawn night: dawn
Author: Da Zhang