all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* set font for TODO
@ 2013-06-03  6:54 Luca Ferrari
  2013-06-03 12:43 ` Tim Visher
  0 siblings, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2013-06-03  6:54 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
this could be trivial but I cannot find a solution: I'd like to
emphasize some warning/todo words with a special font, so in the
beginning I did:

(custom-set-faces
 '(font-lock-warning-face ((t (:foreground "Yellow" :weight bold  )))) )

(defun fluca1978/fontify-fixme ()
  (font-lock-add-keywords
   nil '(("\\<\\(FIX\\|TODO\\|FIXME\\|HACK\\|REFACTOR\\|XXX\\)[ \t\s\n:]*"
          1 font-lock-warning-face t))))


but of course this has the side effect to fontify also every other
string that emacs applies warning-face to. So how can I isolate my
keyword list from the emacs one?

Thanks,
Luca



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

end of thread, other threads:[~2013-06-13 14:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03  6:54 set font for TODO Luca Ferrari
2013-06-03 12:43 ` Tim Visher
2013-06-03 13:11   ` Luca Ferrari
     [not found]   ` <mailman.925.1370265110.22516.help-gnu-emacs@gnu.org>
2013-06-13 14:44     ` Stefan Monnier

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.