[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: please help with font-lock-add-keywords

From: bufie
Subject: Re: please help with font-lock-add-keywords
Date: Thu, 31 Dec 2009 16:14:24 -0700
User-agent: Thunderbird (Windows/20090812)

Tassilo Horn wrote:
> bufie <address@hidden> writes:
> Hi!
>> I'd like to fontify a whole bunch of function names for a project I'm
>> working on (which uses lisp mode, not emacs-lisp-mode -- for
>> reference, I'm using GNU emacs 23.1.1).
> This works for me and highlights any symbol starting with qbb- in the
> keyword face.
> --8<---------------cut here---------------start------------->8---
> (font-lock-add-keywords 
>  'lisp-mode
>  '(("\\<qbb-[[:alnum:]-]+\\>" . font-lock-keyword-face)))
> --8<---------------cut here---------------end--------------->8---

Thanks!  This is perfect -- it seems to do exactly what I needed!  (and
thanks for the help on the other possibilities as well -- that's great
and may come in handy in the future!)

Thanks again, and Happy New Year!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]