all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Electric Buffer mode too boring
Date: Thu, 24 Apr 2008 21:59:47 -0600	[thread overview]
Message-ID: <furkvc$v9c$1@ger.gmane.org> (raw)
In-Reply-To: <icwsmmohe7.fsf@mk.telcordia.com>

Dan Espen wrote:
> "Drew Adams" <drew.adams@oracle.com> writes:
> 
>>>>> I've been using this with XEmacs for years:
>>>>>
>>>>> (defconst Electric-buffer-menu-mode-font-lock-keywords
>>>>>
>>>>> I've never been able to figure out why it doesn't work 
>>> with gnu emacs.
>>>>> Help!
...
> Maybe I'm missing something basic.
> Doesn't font lock always automatically look for font lock
> keywords with the same name as the mode with the 'font-lock-keywords'
> suffix?
> 
> It seems to with XEmacs.

I think major modes follow the convention of defining a global variable
with such a name, but also make sure to set the buffer-local variable
font-lock-keywords to reference it.

-- 
Kevin Rodgers
Denver, Colorado, USA





  reply	other threads:[~2008-04-25  3:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 19:49 Electric Buffer mode too boring Dan Espen
2008-04-24 22:35 ` Drew Adams
     [not found] ` <mailman.10791.1209076628.18990.help-gnu-emacs@gnu.org>
2008-04-24 23:12   ` Dan Espen
2008-04-24 23:58     ` Drew Adams
     [not found]     ` <mailman.10793.1209081505.18990.help-gnu-emacs@gnu.org>
2008-04-25  1:22       ` Dan Espen
2008-04-25  1:25       ` Dan Espen
2008-04-25  3:59         ` Kevin Rodgers [this message]
     [not found]         ` <mailman.10796.1209096000.18990.help-gnu-emacs@gnu.org>
2008-04-25 12:15           ` Dan Espen
2008-04-25 14:55             ` Lennart Borgman (gmail)
     [not found]             ` <mailman.10809.1209135366.18990.help-gnu-emacs@gnu.org>
2008-04-25 15:16               ` Dan Espen
2008-04-25 15:55                 ` Lennart Borgman (gmail)
2008-04-25 15:20               ` Sven Joachim
2008-04-25 15:38                 ` Dan Espen
2008-04-25 15:53                 ` Lennart Borgman (gmail)

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='furkvc$v9c$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.