From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: font-lock problems Date: 19 Sep 2005 15:39:13 -0700 Organization: http://groups.google.com Message-ID: <1127169553.854289.222160@g43g2000cwa.googlegroups.com> References: <87y85uk5ub.fsf@madamex.madamex.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1127169699 10451 80.91.229.2 (19 Sep 2005 22:41:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Sep 2005 22:41:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 20 00:41:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EHUJD-0003lY-GL for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Sep 2005 00:40:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EHUJC-0007k2-7h for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Sep 2005 18:40:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 198.74.20.78 Original-X-Trace: posting.google.com 1127169559 12632 127.0.0.1 (19 Sep 2005 22:39:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 19 Sep 2005 22:39:19 +0000 (UTC) In-Reply-To: <87y85uk5ub.fsf@madamex.madamex.dk> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=198.74.20.78; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:134017 Original-To: help-gnu-emacs@gnu.org 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:29576 Archived-At: > I am trying to get font-lock to color some words > ... > This is part of a major mode, I am writing. Generally in a major mode you would use something like (setq font-lock-defaults '((inducks-keywords 0 'inducks-keyword-face) ...)) rather than font-lock-add-keywords. I usually only see font-lock-add-keywords used in in customzation functions such as something put on a mode hook or in a derived mode. I didn't look too close at your syntax though.