From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ishi soichi Newsgroups: gmane.emacs.help Subject: Re: change faces interactively Date: Wed, 25 Jan 2012 15:44:00 +0900 Message-ID: References: <67E1B9EC96D94790BEA9EF4E01430D8F@us.oracle.com> <87hazmxpjx.fsf@web.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9340fcbb6b12a04b7549646 X-Trace: dough.gmane.org 1327473857 28874 80.91.229.12 (25 Jan 2012 06:44:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 06:44:17 +0000 (UTC) To: help-gnu-emacs@gnu.org, michael_heerdegen@web.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 25 07:44:13 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rpwab-000085-1D for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jan 2012 07:44:13 +0100 Original-Received: from localhost ([::1]:50603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpwaZ-0004QD-AO for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jan 2012 01:44:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpwaR-0004Pm-4T for help-gnu-emacs@gnu.org; Wed, 25 Jan 2012 01:44:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpwaP-0005fR-Ud for help-gnu-emacs@gnu.org; Wed, 25 Jan 2012 01:44:03 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:52324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpwaP-0005fM-OS for help-gnu-emacs@gnu.org; Wed, 25 Jan 2012 01:44:01 -0500 Original-Received: by iadk27 with SMTP id k27so2514365iad.0 for ; Tue, 24 Jan 2012 22:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iS4bkEqhJp7QAlvclXYUcR2Y06TOFIlCqkMqthkrwLM=; b=XWqrtmz8yR4G6y+7bIXIRNA6YUzg3bc0xNv/2EjjvQXiCoBHvMxhuOF6DAiHz0Fuc7 N6GTFUSmyo6k5N2Os1Ga57XQ/lzj2Kqvj/ifNp/9NHhofUXTOH9AnNmCKadn370P63u5 OYD3Ean9VqETAUaPyqmhsYbInSvc+wa3ytJtE= Original-Received: by 10.50.195.135 with SMTP id ie7mr17649755igc.6.1327473840533; Tue, 24 Jan 2012 22:44:00 -0800 (PST) Original-Received: by 10.42.149.134 with HTTP; Tue, 24 Jan 2012 22:44:00 -0800 (PST) In-Reply-To: <87hazmxpjx.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83550 Archived-At: --14dae9340fcbb6b12a04b7549646 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the info! It will help. soichi 2012/1/24 Michael Heerdegen > 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. > --14dae9340fcbb6b12a04b7549646 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the info!
It will help.

soichi
<= br>
--14dae9340fcbb6b12a04b7549646--