Next: Font Selection, Previous: Auto Faces, Up: Faces
If your Emacs Lisp program needs to assign some faces to text, it is often a good idea to use certain existing faces or inherit from them, rather than defining entirely new faces. This way, if other users have customized the basic faces to give Emacs a certain look, your program will fit in without additional customization.
Some of the basic faces defined in Emacs are listed below. In addition to these, you might want to make use of the Font Lock faces for syntactic highlighting, if highlighting is not already handled by Font Lock mode, or if some Font Lock faces are not in use. See Faces for Font Lock.
defaultbolditalicbold-italicunderlinefixed-pitchfixed-pitch-serifvariable-pitchbold
has a bold :weight attribute), with all other attributes
unspecified (and so given by default).
shadowlinklink-visitedhighlightmouse-face property for cursor
highlighting (see Special Properties).
matchisearchlazy-highlighterrorwarningsuccess