emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to add font-lock keywords
@ 2011-08-23 17:51 Le Wang
  2011-08-24  1:01 ` John Wiegley
  0 siblings, 1 reply; 7+ messages in thread
From: Le Wang @ 2011-08-23 17:51 UTC (permalink / raw)
  To: Orgmode Mailing List

Hi all,

I wasn't able to google a clear examples of how to do this.  For
example, I'd like to highlight all text between double-quotes.

-- 
Le

^ permalink raw reply	[flat|nested] 7+ messages in thread
* How to add font-lock keywords
@ 2021-12-11 11:21 Daniel Fleischer
  2021-12-21 19:35 ` Bruno Barbier
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Fleischer @ 2021-12-11 11:21 UTC (permalink / raw)
  To: emacs-orgmode

Hi, I want to add custom keywords to be highlighted. I used

    (font-lock-add-keywords nil '(("books" . org-level-4)) t)


but nothing happens after I restart orgmode or call 'font-lock-update'.

-- 

Daniel Fleischer


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

end of thread, other threads:[~2021-12-23  8:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-23 17:51 how to add font-lock keywords Le Wang
2011-08-24  1:01 ` John Wiegley
2011-08-24  1:17   ` John Wiegley
2011-08-24  4:25     ` Le Wang
  -- strict thread matches above, loose matches on Subject: below --
2021-12-11 11:21 How " Daniel Fleischer
2021-12-21 19:35 ` Bruno Barbier
2021-12-23  8:20   ` Daniel Fleischer

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).