Next: Modifying Faces Prev: Menu Bars Up: Frames

Using Multiple Typefaces

   When using Emacs with X, you can set up multiple styles of displaying
characters.  The aspects of style that you can control are the type
font, the foreground color, the background color, and whether to

   The way you control display style is by defining named "faces".
Each face can specify a type font, a foreground color, a background
color, and an underline flag; but it does not have to specify all of

   The style of display used for a given character in the text is
determined by combining several faces.  Which faces to use is always set
up by Lisp programs, at present, by means of text properties and
overlays.  Any aspect of the display style that isn't specified by
overlays or text properties comes from the frame itself.

   To see what faces are currently defined, and what they look like,
type `M-x list-faces-display'.  It's possible for a given face to look
different in different frames; this command shows the appearance in the
frame in which you type it.

   When Transient Mark mode is enabled, the text of the region is
highlighted when the mark is active.  This uses a face named `region';
you can control the style of highlighting by changing the style of this
face with the commands below.  Note: Setting Mark, for more
information about Transient Mark mode and activation and deactivation
of the mark.

   One easy way to use faces is to turn on Font-Lock mode.  This minor
mode, which is always local to a particular buffer, arranges to choose
faces according to the syntax of the text you are editing.  It can
recognize comments and strings in any major mode; for several major
modes, it can also recognize and properly highlight various other
important parts of the text.  To get the full benefit of Font-Lock mode,
you need to choose a default font which has bold, italic, and
bold-italic variants.

automatically generated by info2www