unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "rgb" <rbielaws@i1.net>
Subject: Re: font-lock problems
Date: 19 Sep 2005 15:39:13 -0700	[thread overview]
Message-ID: <1127169553.854289.222160@g43g2000cwa.googlegroups.com> (raw)
In-Reply-To: <87y85uk5ub.fsf@madamex.madamex.dk>

> I am trying to get font-lock to color some words
> ...
> This is part of a major mode, I am writing.

Generally in a major mode you would use something like

(setq font-lock-defaults
  '((inducks-keywords 0 'inducks-keyword-face)
    ...))

rather than font-lock-add-keywords.
I usually only see font-lock-add-keywords used in in
customzation functions such as something put on a mode
hook or in a derived mode.

I didn't look too close at your syntax though.

      parent reply	other threads:[~2005-09-19 22:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-18 10:50 font-lock problems Mads Jensen
2005-09-19 14:09 ` Stefan Monnier
2005-09-19 16:07   ` Mads Jensen
2005-09-20  9:25     ` Tim X
2005-09-21  2:34     ` Stefan Monnier
2005-09-19 22:39 ` rgb [this message]

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=1127169553.854289.222160@g43g2000cwa.googlegroups.com \
    --to=rbielaws@i1.net \
    /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).