all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ishi soichi <soichi777@gmail.com>
To: help-gnu-emacs@gnu.org, michael_heerdegen@web.de
Subject: Re: change faces interactively
Date: Wed, 25 Jan 2012 15:44:00 +0900	[thread overview]
Message-ID: <CAEjRLuTzY0OvAMO9T__CFWsfXA4bRDVLYO-kANXuoeMDQe7SJA@mail.gmail.com> (raw)
In-Reply-To: <87hazmxpjx.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

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.
>

[-- Attachment #2: Type: text/html, Size: 1329 bytes --]

      reply	other threads:[~2012-01-25  6:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20  7:41 change faces interactively ishi soichi
2012-01-20 15:30 ` Drew Adams
2012-01-21  1:20   ` ishi soichi
2012-01-21  2:07     ` Drew Adams
2012-01-23 10:51       ` Andreas Röhler
2012-01-23 18:05     ` Michael Heerdegen
2012-01-25  6:44       ` ishi soichi [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEjRLuTzY0OvAMO9T__CFWsfXA4bRDVLYO-kANXuoeMDQe7SJA@mail.gmail.com \
    --to=soichi777@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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.