Customizing the colors

New way

In modern version of emacs, the preferred way to customize colors is to use the built-in customize facility. M-x customize-faces

Old way

This is a task which has to be done by everybody separately, and cannot thus be performed as part of mf-init. The reasons are taste, but also environment differences. Technically, the preferred way (the one chosen, at least) is in addition to use the X resources, and these are not shared.

Here is the procedure. Open a buffer displaying the fonts you want to change (1); use M-x list-faces-display to create a *Faces* buffer, (2) which will show the name of the "faces" you need to customize; use M-x list-colors-display to create the *Colors* buffer (3), which will show the name of the colors (using mf-init, these buffers will be shown by default in the "FRAMEPOP" frame, but you can "switch to" them in any other frame); "visit" your resource file (4). Last, open the *scratch* buffer (5).

Now, in (5), "evaluate" (by pressing Ctrl-j at the end of the line where they are written) lisp forms such as:

(set-face-foreground 'message-cited-text-face "MediumTurquoise")
where the first argument, the face, is taken from (2) and the second, the color, from (3). Check in (1) that you are satisfied by the result, and once you are, add to (4) a line such as:
Emacs.message-cited-text-face.attributeForeGround:	MediumTurquoise

These settings affect the current emacs session. For them to affect the next, load your resource file with the shell command:

xrdb -l dt.resources

Info on faces , xrdb(1),
Emacs Toc
Marc Girod
Last modified: Mon Feb 11 08:40:22 EET 2002