all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* highlighting keywords in comments
@ 2011-03-06 19:03 Nathaniel Flath
  2011-03-11 17:32 ` Andreas Röhler
  0 siblings, 1 reply; 5+ messages in thread
From: Nathaniel Flath @ 2011-03-06 19:03 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

In java-mode (and other cc-modes), I have the following code

                   (font-lock-add-keywords
                    nil
                    '(("\\(FIXME\\|TODO\\)" 1 font-lock-warning-face)))

However, this doesn't work on FIXME or TODO words in comments, making it
much less useful.  Is there a way for these keywords to be highlighted in
font-lock-warning-face, even in comments?

Thanks,
Nathaniel Flath

[-- Attachment #2: Type: text/html, Size: 539 bytes --]

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

end of thread, other threads:[~2011-03-11 17:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3.1299438195.5045.help-gnu-emacs@gnu.org>
2011-03-06 21:22 ` highlighting keywords in comments Tim X
2011-03-06 21:31 ` Stefan Monnier
2011-03-07 16:18   ` jpkotta
2011-03-06 19:03 Nathaniel Flath
2011-03-11 17:32 ` Andreas Röhler

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.