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

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

Re: change faces interactively


From: ishi soichi
Subject: Re: change faces interactively
Date: Wed, 25 Jan 2012 15:44:00 +0900

Thanks for the info!
It will help.

soichi

2012/1/24 Michael Heerdegen <michael_heerdegen@web.de>
Hello,

if you want a low-level solution, you can use `highlight-regexp' from
"hi-lock.el", which is part of vanilla Emacs.

If you want the highlighting to be performed automatically when you
visit the file, you can use `eval' in the file local variable
declarations.  Simple example (just create a file with this content to
try):

--8<---------------cut here---------------start------------->8---
I use Emacs, because Emacs is really cool!

Local Variables:
eval: (highlight-regexp "Emacs" "bold")
End:
--8<---------------cut here---------------end--------------->8---

There are different solutions, depending on what you want to do
specifically.  If you want syntactical highlighting, it's better to use
font-lock, like in the example from Andreas.


Regards,

Michael.


reply via email to

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