From: Tim Johnson <tim@johnsons-web.com>
Subject: Re: Adding a font-lock face to a major mode
Date: Thu, 5 Jan 2006 11:44:20 -0900 [thread overview]
Message-ID: <20060105204420.GK1812@johnsons-web.com> (raw)
In-Reply-To: <87y81upnfg.fsf-monnier+gnu.emacs.help@gnu.org>
* Stefan Monnier <monnier@iro.umontreal.ca> [060105 10:19]:
> > I would like to be able to add a font-lock face to a major mode at load
> > time.
>
> Try font-lock-add-keywords.
<grin> Works like a charm</grin> the kicker, however, is that
<sigh> I'm tasked with solutions that can be applied to both
gnu and X emacs. Xemacs does not have that function and
furthermore, simply exploiting the code doesn't work
either, because Xemacs apparently has a significantly different
structure for syntax highlighting.
Thanks for the tip Stefan.
For now it will be a gnu-only solution. Later I can use an 'cond
form to test the Xemacs and provide an alternate code.
cheers
tim
--
Tim Johnson <tim@johnsons-web.com>
http://www.alaska-internet-solutions.com
next prev parent reply other threads:[~2006-01-05 20:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.21393.1136395091.20277.help-gnu-emacs@gnu.org>
2006-01-05 17:58 ` Adding a font-lock face to a major mode Stefan Monnier
2006-01-05 20:44 ` Tim Johnson [this message]
2006-01-05 21:01 ` Stefan Monnier
2006-01-04 17:16 Tim Johnson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060105204420.GK1812@johnsons-web.com \
--to=tim@johnsons-web.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.