diff options
| author | Glenn Morris | 2005-06-22 14:16:33 +0000 |
|---|---|---|
| committer | Glenn Morris | 2005-06-22 14:16:33 +0000 |
| commit | 31c8b366fd58f2424ec0df0a61bfab5fc7ec9111 (patch) | |
| tree | c0190d80ec94337365214ae80f81baf7d24b8f4b | |
| parent | a1ef2eabbfc147671bb3eb5c403fc91d8e127e6c (diff) | |
| download | emacs-31c8b366fd58f2424ec0df0a61bfab5fc7ec9111.tar.gz emacs-31c8b366fd58f2424ec0df0a61bfab5fc7ec9111.zip | |
(Face Functions): Mention face aliases.
| -rw-r--r-- | lispref/display.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lispref/display.texi b/lispref/display.texi index 2243a1e6899..6af7b8f19cd 100644 --- a/lispref/display.texi +++ b/lispref/display.texi | |||
| @@ -2523,6 +2523,17 @@ This returns non-@code{nil} if the face @var{face} displays | |||
| 2523 | differently from the default face. | 2523 | differently from the default face. |
| 2524 | @end defun | 2524 | @end defun |
| 2525 | 2525 | ||
| 2526 | @cindex face alias | ||
| 2527 | A @dfn{face alias} provides an equivalent name for a face. You can | ||
| 2528 | define a face alias by giving the alias symbol the @code{face-alias} | ||
| 2529 | property, with a value of the target face name. The following example | ||
| 2530 | makes @code{modeline} an alias for the @code{mode-line} face. | ||
| 2531 | |||
| 2532 | @example | ||
| 2533 | (put 'modeline 'face-alias 'mode-line) | ||
| 2534 | @end example | ||
| 2535 | |||
| 2536 | |||
| 2526 | @node Auto Faces | 2537 | @node Auto Faces |
| 2527 | @subsection Automatic Face Assignment | 2538 | @subsection Automatic Face Assignment |
| 2528 | @cindex automatic face assignment | 2539 | @cindex automatic face assignment |