color-theme-x is an Emacs Lisp package that converts Emacs color themes to X11 resource settings. Applying color themes in this way allows Emacs to start up significantly faster than by loading the theme from Lisp code.
I forked color-theme-x from the file I found on the Emacs wiki because I had some problems with getting it to work consistently.
color-theme-x.el
somewhere on your Emacs load path.color-theme-x.el
is also available in Melpa. See the setup instructions for information on using Melpa. Then you can run M-x package-install color-theme-x
to install it.
The default prefix for the X11 resources settings generated by color-theme-x is Emacs. In some environments this may need to be changed; for example you may need to change it to Emacs23 for the properties to by applied to an Emacs 23 installation. To support this, you can either
(setq color-theme-x-resource-prefix "<prefix>")
to your .emacsM-x customize-group RET color-theme-x RET
and customize the prefix there.M-x color-theme-x RET <name> RET <path to file defining theme>
*color-theme-xresources*
. Copy the contents of that buffer to your ~/.Xresources
file.xrdb -merge ~/.Xresources
Some pre-converted themes are available under themes/
. I've included the theme I use as well as all of the themes in color-theme-library.el
that ship with the color-theme
package. I'll happily include any other themes you send me as well.