help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

font-lock-add-keywords


From: Randy Haddox
Subject: font-lock-add-keywords
Date: Thu, 05 Aug 2004 10:08:16 -0500

I am using code in .emacs to find and color code various keywords.  I
haven't had any luck handling the "if" keyword when it doesn't starting
in column 1 (ie, has leading whitespace).  Most of the time the "if"
will start at the beginning.

(defface test-keyword6-face
  '((t (:foreground "gold")))
  "Keyword face.")
(font-lock-add-keywords 'latex-mode
  '(("^if\\|then\\|else\\|endif" . 'test-keyword6-face))
)


Any help would be much appreciated.


Thanks,
Randy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]