unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Adding font-lock keywords
@ 2003-04-21 21:05 Brendan Van Horn
  2003-04-22 10:05 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Brendan Van Horn @ 2003-04-21 21:05 UTC (permalink / raw)


Greetings!  I spent some time reading FAQs and posts I could find and
I still seem to be missing something.  I'm trying to add some extra
keywords so that they are highlighted while editing.  Here is what I
came up with:

;; windows constants
(setq my-win32-constant-keywords
      (regexp-opt
       '("COINIT_MULTITHREADED" "ICC_COOL_CLASSES" "NULL"
"SW_SHOWDEFAULT"
	 "VT_BSTR" "VT_I4")))

(font-lock-add-keywords
 'c++-mode
 '((my-win32-constant-keywords . font-lock-constant-face)))

Where am I going wrong???

Thanks!
Brendan

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

end of thread, other threads:[~2003-04-22 17:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-21 21:05 Adding font-lock keywords Brendan Van Horn
2003-04-22 10:05 ` Glenn Morris
2003-04-22 17:10   ` Brendan Van Horn

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).