help-gnu-emacs
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
adding custom keywords using font-lock-add-keywords.
From
:
Nurullah Akkaya
Subject
:
adding custom keywords using font-lock-add-keywords.
Date
:
Sun, 22 Feb 2009 17:12:59 +0200
I am trying to add some custom keywords to be highlighted using the example from emacs manual
(font-lock-add-keywords 'text-mode
'(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend)
("\\<\\(and\\|or\\|not\\)\\>" . font-lock-keyword-face)))
My problem is first occurence of the words are not highlighted for example first FIXME: is not highlighted but second third and so on are highlighted.
How can i get to highlighted all occurrences?
--
Nurullah Akkaya
http://nakkaya.com
reply via email to
[Prev in Thread]
Current Thread
[Next in Thread]
adding custom keywords using font-lock-add-keywords.
,
Nurullah Akkaya
<=
Prev by Date:
Re: Quick math calc on any buffer
Next by Date:
Re: Quick math calc on any buffer
Previous by thread:
speck-mode; Invalid default checker
Next by thread:
Using emacs to view scrollback-buffer (from gnu-screen)
Index(es):
Date
Thread