diff options
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r-- | lisp/font-lock.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 2fba6a80a23..5f12c6c129f 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -696,12 +696,12 @@ pass nil for MODE and add the call to c-mode-hook. For example: - (add-hook 'c-mode-hook + (add-hook \\='c-mode-hook (lambda () (font-lock-add-keywords nil - '((\"\\\\\\=<\\\\(FIXME\\\\):\" 1 'font-lock-warning-face prepend) + \\='((\"\\\\\\=<\\\\(FIXME\\\\):\" 1 \\='font-lock-warning-face prepend) (\"\\\\\\=<\\\\(and\\\\|or\\\\|not\\\\)\\\\\\=>\" . - 'font-lock-keyword-face))))) + \\='font-lock-keyword-face))))) The above procedure may fail to add keywords to derived modes if some involved major mode does not follow the standard conventions. |