unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: extronom <extronom@googlemail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: set face for added font lock keywords
Date: Sun, 9 Jan 2011 21:34:31 -0800	[thread overview]
Message-ID: <20110109213431.3c00e685@bhishma.homelinux.net> (raw)
In-Reply-To: <20110109213122.753b2d70@bhishma.homelinux.net>

On Sun, 9 Jan 2011 21:31:22 -0800
Suvayu Ali <fatkasuvayu+linux@gmail.com> 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.



  reply	other threads:[~2011-01-10  5:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-09 15:27 set face for added font lock keywords extronom
2011-01-10  5:31 ` Suvayu Ali
2011-01-10  5:34   ` Suvayu Ali [this message]
2011-01-10  6:43 ` Teemu Likonen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110109213431.3c00e685@bhishma.homelinux.net \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=extronom@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).