www.delorie.com/gnu/docs/elisp-manual-21/elisp_370.html   search  
Buy the book!

GNU Emacs Lisp Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

23.5.5 Faces for Font Lock

You can make Font Lock mode use any face, but several faces are defined specifically for Font Lock mode. Each of these symbols is both a face name, and a variable whose default value is the symbol itself. Thus, the default value of font-lock-comment-face is font-lock-comment-face. This means you can write font-lock-comment-face in a context such as font-lock-keywords where a face-name-valued expression is used.

Used (typically) for comments.

Used (typically) for string constants.

Used (typically) for keywords--names that have special syntactic significance, like for and if in C.

Used (typically) for built-in function names.

Used (typically) for the name of a function being defined or declared, in a function definition or declaration.

Used (typically) for the name of a variable being defined or declared, in a variable definition or declaration.

Used (typically) for names of user-defined data types, where they are defined and where they are used.

Used (typically) for constant names.

Used (typically) for constructs that are peculiar, or that greatly change the meaning of other text. For example, this is used for `;;;###autoload' cookies in Emacs Lisp, and for #error directives in C.

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003