diff options
| author | Eli Zaretskii | 2000-10-08 08:43:31 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-10-08 08:43:31 +0000 |
| commit | d55dbe07973ae8d4c6400013a9b28462fcaba714 (patch) | |
| tree | 96ead997e7e4b7816797018d9c0df9d44edb560c | |
| parent | a640322e7bde78bb02bb7bb6e7d78398497b815d (diff) | |
| download | emacs-d55dbe07973ae8d4c6400013a9b28462fcaba714.tar.gz emacs-d55dbe07973ae8d4c6400013a9b28462fcaba714.zip | |
(Font Lock): Explain how to customize Font Lock faces.
(Faces): Document set-face-foreground and set-face-background.
| -rw-r--r-- | man/frames.texi | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/man/frames.texi b/man/frames.texi index 8eae3fc9132..0a301a0211f 100644 --- a/man/frames.texi +++ b/man/frames.texi | |||
| @@ -715,10 +715,11 @@ argument is positive, off if the argument is not positive. You can use | |||
| 715 | the X resource @samp{menuBarLines} to control the initial setting of | 715 | the X resource @samp{menuBarLines} to control the initial setting of |
| 716 | Menu Bar mode. @xref{Resources X}. | 716 | Menu Bar mode. @xref{Resources X}. |
| 717 | 717 | ||
| 718 | @kindex C-Mouse-3@r{, when menu bar is turned off} | ||
| 718 | Expert users often turn off the menu bar, especially on text-only | 719 | Expert users often turn off the menu bar, especially on text-only |
| 719 | terminals, where this makes one additional line available for text. If | 720 | terminals, where this makes one additional line available for text. If |
| 720 | the menu bar is off, you can still pop up a menu of its contents with | 721 | the menu bar is off, you can still pop up a menu of its contents with |
| 721 | @kbd{c-mouse-3} on a display which supports popup menus. @xref{Menu | 722 | @kbd{C-mouse-3} on a display which supports popup menus. @xref{Menu |
| 722 | Mouse Clicks}. | 723 | Mouse Clicks}. |
| 723 | 724 | ||
| 724 | @xref{Menu Bar}, for information on how to invoke commands with the | 725 | @xref{Menu Bar}, for information on how to invoke commands with the |
| @@ -781,6 +782,15 @@ how to specify the foreground and background color. | |||
| 781 | @xref{Face Customization}. You can also use X resources to specify | 782 | @xref{Face Customization}. You can also use X resources to specify |
| 782 | attributes of particular faces (@pxref{Resources X}). | 783 | attributes of particular faces (@pxref{Resources X}). |
| 783 | 784 | ||
| 785 | @cindex face colors, setting | ||
| 786 | @findex set-face-foreground | ||
| 787 | @findex set-face-background | ||
| 788 | Alternatively, you could change the foreground and background colors | ||
| 789 | of a specific face with @kbd{M-x set-face-foreground} and @kbd{M-x | ||
| 790 | set-face-background}. These commands prompt in the minibuffer for a | ||
| 791 | face name and a color name, with completion, and then setup that face to | ||
| 792 | use the specified color. | ||
| 793 | |||
| 784 | @findex list-faces-display | 794 | @findex list-faces-display |
| 785 | To see what faces are currently defined, and what they look like, type | 795 | To see what faces are currently defined, and what they look like, type |
| 786 | @kbd{M-x list-faces-display}. It's possible for a given face to look | 796 | @kbd{M-x list-faces-display}. It's possible for a given face to look |
| @@ -895,6 +905,22 @@ function @code{global-font-lock-mode}, like this: | |||
| 895 | (global-font-lock-mode 1) | 905 | (global-font-lock-mode 1) |
| 896 | @end example | 906 | @end example |
| 897 | 907 | ||
| 908 | To change the colors or the fonts used by Font Lock mode to fontify | ||
| 909 | different parts of text, you can use one of the following: | ||
| 910 | |||
| 911 | @itemize @bullet | ||
| 912 | @item | ||
| 913 | Invoke @kbd{M-x set-face-foreground} or @kbd{M-x set-face-background} to | ||
| 914 | change the colors of a particular face, such as | ||
| 915 | @code{font-lock-variable-name-face}, used by Font Lock. @xref{Faces}. | ||
| 916 | The command @kbd{M-x list-faces-display} displays all the faces | ||
| 917 | currently known to Emacs, including those used by Font Lock. | ||
| 918 | |||
| 919 | @item | ||
| 920 | Customize the faces interactively with @kbd{M-x customize-face}, as | ||
| 921 | described in @ref{Face Customization}. | ||
| 922 | @end itemize | ||
| 923 | |||
| 898 | @kindex M-g M-g | 924 | @kindex M-g M-g |
| 899 | @findex font-lock-fontify-block | 925 | @findex font-lock-fontify-block |
| 900 | In Font Lock mode, when you edit the text, the highlighting updates | 926 | In Font Lock mode, when you edit the text, the highlighting updates |