help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set face for added font lock keywords


From: Suvayu Ali
Subject: Re: set face for added font lock keywords
Date: Sun, 9 Jan 2011 21:34:31 -0800

On Sun, 9 Jan 2011 21:31:22 -0800
Suvayu Ali <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]