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:31:22 -0800 [thread overview]
Message-ID: <20110109213122.753b2d70@bhishma.homelinux.net> (raw)
In-Reply-To: <865aa6b0-9ca4-4b98-8b41-ecc8c245e84d@r29g2000yqj.googlegroups.com>
On Sun, 9 Jan 2011 07:27:30 -0800 (PST)
extronom <extronom@googlemail.com> 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.
next prev parent reply other threads:[~2011-01-10 5:31 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 [this message]
2011-01-10 5:34 ` Suvayu Ali
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=20110109213122.753b2d70@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).