From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: set face for added font lock keywords Date: Sun, 9 Jan 2011 21:31:22 -0800 Message-ID: <20110109213122.753b2d70@bhishma.homelinux.net> References: <865aa6b0-9ca4-4b98-8b41-ecc8c245e84d@r29g2000yqj.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294637522 23891 80.91.229.12 (10 Jan 2011 05:32:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2011 05:32:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: extronom Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 10 06:31:57 2011 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.69) (envelope-from ) id 1PcAMG-0001xT-Iq for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 06:31:56 +0100 Original-Received: from localhost ([127.0.0.1]:47389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcAMF-0006L3-At for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 00:31:55 -0500 Original-Received: from [140.186.70.92] (port=49475 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcALq-0006Kw-Pf for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 00:31:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcALp-000672-Jv for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 00:31:30 -0500 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:47313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcALp-00066w-Ej for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 00:31:29 -0500 Original-Received: by gyd10 with SMTP id 10so4662930gyd.0 for ; Sun, 09 Jan 2011 21:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=3qcmwuA/H5E3SQmdT55bxdOSF+Eavuw8bLVIsKEuAEw=; b=thHqdidvtvt5h4HlfK0sawFOxsezcLjhTWDbwLQiEO82np4ZoaqhTEwuels2k6t+zG uM+W4YR1SsK8mYWavVlnz1JfXa1phkvewMAmZCEMLTTYlqZq7m00voZNMNrQKmXQB4xw TG10yGJWjxeefVH5AfhUK+M3Yfxm2hk0vqoV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; b=EExn03M6Y3yNG2iImninKuz3mFyiHUs4gsn1Ru8iLJ+Jpz7nvg+3DugSD8w5AZExXG LZE92ejzUiYV7fWTSisBuF0y5bo9hHPXZysxLs2sYH8lfFyJqVanZu/+Thi9OUuncfVZ /1IMoq2o6sj9F5r1LKQ6VJyLozSpDRbmyrzRs= Original-Received: by 10.150.97.16 with SMTP id u16mr27526934ybb.185.1294637488578; Sun, 09 Jan 2011 21:31:28 -0800 (PST) Original-Received: from bhishma.homelinux.net (d207-6-162-107.bchsia.telus.net [207.6.162.107]) by mx.google.com with ESMTPS id w24sm1891669ybk.9.2011.01.09.21.31.27 (version=SSLv3 cipher=RC4-MD5); Sun, 09 Jan 2011 21:31:28 -0800 (PST) In-Reply-To: <865aa6b0-9ca4-4b98-8b41-ecc8c245e84d@r29g2000yqj.googlegroups.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.20.1; x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:78351 Archived-At: On Sun, 9 Jan 2011 07:27:30 -0800 (PST) extronom wrote: > I'm trying to add some new keywords by doing font-lock-add-keywords > so that a FIXME keyword gets highlighted, which works quite well. When > I try to change the color of the used face it doesn't work and > probably somebody could give me a hint what the problem is here Why don't you use `M-x customize-face' to customise the face you want to? That apart, I have a similar setup but all I do is add this hook: (add-hook 'find-file-hook (lambda () (font-lock-add-keywords nil '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend))) (if (vc-working-revision (buffer-file-name)) (auto-revert-mode t)) )) Hope this helps. -- Suvayu Open source is the future. It sets us free.