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:34:31 -0800 Message-ID: <20110109213431.3c00e685@bhishma.homelinux.net> References: <865aa6b0-9ca4-4b98-8b41-ecc8c245e84d@r29g2000yqj.googlegroups.com> <20110109213122.753b2d70@bhishma.homelinux.net> 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 1294637718 24533 80.91.229.12 (10 Jan 2011 05:35:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2011 05:35:18 +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:35:14 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 1PcAPO-0002wh-Q0 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 06:35:10 +0100 Original-Received: from localhost ([127.0.0.1]:48003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcAPO-0007C8-8M for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 00:35:10 -0500 Original-Received: from [140.186.70.92] (port=50503 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcAOw-0007Bh-Fz for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 00:34:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcAOr-0006cl-Js for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 00:34:42 -0500 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:51596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcAOr-0006cg-Di for help-gnu-emacs@gnu.org; Mon, 10 Jan 2011 00:34:37 -0500 Original-Received: by gwj22 with SMTP id 22so8860466gwj.0 for ; Sun, 09 Jan 2011 21:34:37 -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=2WE1dsJQaoOzIjRlJejk6iYicPncb9x1CRdao6+2+ag=; b=fxlRbyaOtD7y1QJAFb3svy65eiGilYlSInZpoUigqH8XE+S54FtDSA8n9O1/0Stp7h KmC3iJximx2dIEPtHCzR9VrSYbL/VJPdNbdmdg4jbfaDETQI3zJqxwRwkpWvgB7b6JGW bns61LRx+G+gpprvYRo78xvBD8nuinMTOf8cE= 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=MJyjOqXk2n1MmJBxfVj9Z2ui4Jlc3U9l1hJ9KCyyg7hI1+RGdcef52uKQ6lTfvrqJU 8KVp5lRiTR31XrsziIsIx1Symv7n7pZuNHAESUnWYwy7quXdOv1kchMIiIs/3jpzpEME w4GKeTWcCK0Jhqm/dkUsmT5TwCiFK9AgGIKvQ= Original-Received: by 10.150.143.7 with SMTP id q7mr17465121ybd.211.1294637676928; Sun, 09 Jan 2011 21:34:36 -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 b7sm4555674ybn.11.2011.01.09.21.34.35 (version=SSLv3 cipher=RC4-MD5); Sun, 09 Jan 2011 21:34:36 -0800 (PST) In-Reply-To: <20110109213122.753b2d70@bhishma.homelinux.net> 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:78352 Archived-At: On Sun, 9 Jan 2011 21:31:22 -0800 Suvayu Ali wrote: > > 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)) > )) > Sorry, that should have been this: (add-hook 'find-file-hook (lambda () (font-lock-add-keywords nil '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend))) )) > Hope this helps. > -- Suvayu Open source is the future. It sets us free.