# HG changeset patch # User Eli Zaretskii # Date 970987822 0 # Node ID ad080e900685bf8a9de770207c87d416a67c4f74 # Parent 4ff70fe0d99b80f137633bc8b2cab780889ad569 (font-lock-mode, global-font-lock-mode): Mention in the doc strings how to customize Font Lock faces. diff -r 4ff70fe0d99b -r ad080e900685 lisp/font-lock.el --- a/lisp/font-lock.el Sun Oct 08 06:24:44 2000 +0000 +++ b/lisp/font-lock.el Sun Oct 08 06:50:22 2000 +0000 @@ -636,6 +636,7 @@ (defun font-lock-mode (&optional arg) "Toggle Font Lock mode. With arg, turn Font Lock mode on if and only if arg is positive. +(Font Lock is also known as \"syntax highlighting\".) When Font Lock mode is enabled, text is fontified as you type it: @@ -644,6 +645,9 @@ - Certain other expressions are displayed in other faces according to the value of the variable `font-lock-keywords'. +To customize the faces (colors, fonts, etc.) used by Font Lock for +fontifying different parts of buffer text, use \\[customize-face]. + You can enable Font Lock mode in any major mode automatically by turning on in the major mode's hook. For example, put in your ~/.emacs: @@ -924,12 +928,16 @@ ;;;###autoload (defun global-font-lock-mode (&optional arg message) "Toggle Global Font Lock mode. +(Font Lock is also known as \"syntax highlighting\".) With prefix ARG, turn Global Font Lock mode on if and only if ARG is positive. Displays a message saying whether the mode is on or off if MESSAGE is non-nil. Returns the new status of Global Font Lock mode (non-nil means on). When Global Font Lock mode is enabled, Font Lock mode is automagically -turned on in a buffer if its major mode is one of `font-lock-global-modes'." +turned on in a buffer if its major mode is one of `font-lock-global-modes'. + +To customize the faces (colors, fonts, etc.) used by Font Lock for +highlighting different parts of buffer text, use \\[customize-face]." (interactive "P\np") (let ((on-p (if arg (> (prefix-numeric-value arg) 0)