all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* font-lock-add-keywords
@ 2004-08-05 15:08 Randy Haddox
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Haddox @ 2004-08-05 15:08 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-05 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.0.1091718744.2011.help-gnu-emacs@gnu.org>
2004-08-05 15:39 ` font-lock-add-keywords Kevin Rodgers
2004-08-05 22:35 ` font-lock-add-keywords Arjan Bos
2004-08-05 15:08 font-lock-add-keywords Randy Haddox

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.