From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bufie Newsgroups: gmane.emacs.help Subject: Re: please help with font-lock-add-keywords Date: Thu, 31 Dec 2009 16:14:24 -0700 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262319630 4402 80.91.229.12 (1 Jan 2010 04:20:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jan 2010 04:20:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 01 05:20:23 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQYzr-00089J-HJ for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Jan 2010 05:20:20 +0100 Original-Received: from localhost ([127.0.0.1]:38798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQYzq-0006CO-De for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2009 23:20:18 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Injection-Date: Thu, 31 Dec 2009 23:14:31 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="0fWIdoXklOnfz07zFuH4RQ"; logging-data="2163"; posting-account="U2FsdGVkX186jAO8iAJ9GpuUsT6ZUiw0byuBXfZ+Sks=" User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: Cancel-Lock: sha1:6gcVXlFSICN2WvJcqmdXrb536T8= Original-Xref: news.stanford.edu gnu.emacs.help:175919 X-Mailman-Approved-At: Thu, 31 Dec 2009 23:19:57 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70997 Archived-At: Tassilo Horn wrote: > bufie 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 > '(("\\" . 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! -b