* font-lock-keyword
@ 2004-07-20 20:30 Randy Haddox
2004-07-21 4:16 ` font-lock-keyword Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Randy Haddox @ 2004-07-20 20:30 UTC (permalink / raw)
I am trying to set up a custom .emacs function that will assign
individual foreground colors to a list of keywords.
For example, I'd like to find the keywords "include", "define", and
"assign" in a file and change their foreground colors to "green",
"blue", and "purple" respectively.
Any help would be much appreciated.
Thanks,
Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: font-lock-keyword
[not found] <mailman.797.1090355649.1960.help-gnu-emacs@gnu.org>
@ 2004-07-20 22:04 ` Sandip Chitale
0 siblings, 0 replies; 3+ messages in thread
From: Sandip Chitale @ 2004-07-20 22:04 UTC (permalink / raw)
"Randy Haddox" <randal.haddox@us.army.mil> wrote in message
news:mailman.797.1090355649.1960.help-gnu-emacs@gnu.org...
> I am trying to set up a custom .emacs function that will assign
> individual foreground colors to a list of keywords.
>
> For example, I'd like to find the keywords "include", "define", and
> "assign" in a file and change their foreground colors to "green",
> "blue", and "purple" respectively.
>
>
> Any help would be much appreciated.
>
>
> Thanks,
> Randy
Do:
M-x describe-function RET font-lock-add-keywords RET
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: font-lock-keyword
2004-07-20 20:30 font-lock-keyword Randy Haddox
@ 2004-07-21 4:16 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2004-07-21 4:16 UTC (permalink / raw)
> From: Randy Haddox <randal.haddox@us.army.mil>
> Date: Tue, 20 Jul 2004 15:30:54 -0500
>
> I am trying to set up a custom .emacs function that will assign
> individual foreground colors to a list of keywords.
>
> For example, I'd like to find the keywords "include", "define", and
> "assign" in a file and change their foreground colors to "green",
> "blue", and "purple" respectively.
"C-h f hi-lock-mode RET" should tell you what to do.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-07-21 4:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-20 20:30 font-lock-keyword Randy Haddox
2004-07-21 4:16 ` font-lock-keyword Eli Zaretskii
[not found] <mailman.797.1090355649.1960.help-gnu-emacs@gnu.org>
2004-07-20 22:04 ` font-lock-keyword Sandip Chitale
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).