From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Frank Winkler @home" Newsgroups: gmane.emacs.help Subject: Re: Two questions Date: Wed, 11 Sep 2002 16:18:52 +0200 (CEST) Organization: private OS/2 site Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: Reply-To: "Frank Winkler" NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1031754369 13517 127.0.0.1 (11 Sep 2002 14:26:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2002 14:26:09 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17p8RS-0003Vb-00 for ; Wed, 11 Sep 2002 16:26:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17p8RY-0000kN-00; Wed, 11 Sep 2002 10:26:12 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!newsfeed.ecrc.net.MISMATCH!news-FFM2.ecrc.net!news.ecrc.de!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help X-Newsreader: PMINews 2.00.1205 For OS/2 Cache-Post-Path: intranet.consol.de!unknown@frankw1.home.consol.de X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Original-Lines: 31 Original-NNTP-Posting-Host: 194.221.87.10 Original-X-Complaints-To: news@ecrc.de Original-X-Trace: news.ecrc.de 1031753971 194.221.87.10 (Wed, 11 Sep 2002 16:19:31 MET DST) Original-NNTP-Posting-Date: Wed, 11 Sep 2002 16:19:31 MET DST Original-Xref: nntp.stanford.edu comp.emacs:74382 gnu.emacs.help:104749 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1305 On Tue, 10 Sep 2002 09:42:06 +0200, Peter Weiss, wrote: >> my attempts to customize them. But I didn't find the code which >> recognizes the commands and sets the colors; is this hard-coded? > >Nope, like allways in Emacs: You can modify nearly everything to fit your >needs. Check the info docs for "font-lock". Font-lock-mode is activated >for example globally with > > (global-font-lock-mode 1) Ok, "font-lock-mode" seems to be a good trace. If I enable this mode, my Perl program gets fontified. But I still don't understand why and how. The word "perl" doesn't appear in font-lock.el. So where exactly is the keyword-color mapping defined? Why is this not coupled to perl-mode.el? After some more fiddling: hilit19.el seems to be the interesting point. TIA -- ---------------------------------------------------------------------------- Frank Winkler frank@consol.de ConSol GmbH Franziskanerstr. 38 Voice +49 89 45841.180 81669 Munich - Germany Fax +49 89 45841.199