From: Dan Espen <daneNO@MORE.mk.SPAMtelcordia.com>
To: help-gnu-emacs@gnu.org
Subject: Electric Buffer mode too boring
Date: Thu, 24 Apr 2008 19:49:36 GMT [thread overview]
Message-ID: <icd4ofowxb.fsf@mk.telcordia.com> (raw)
Hi,
I've been using this with XEmacs for years:
(defconst Electric-buffer-menu-mode-font-lock-keywords
(purecopy
(list
'("^ MR Buffer.*" . font-lock-preprocessor-face) ;hdr 1
'("^ -- ------.*" . font-lock-preprocessor-face) ;hdr 2
'("^\\(....Man: .*\\)" 1 font-lock-variable-name-face t) ;Manpg (new)
'("^[. ][*][^%].[^*].*" . font-lock-comment-face) ;Mod x temp
'("^....[*]Buffer List[*].*" . font-lock-doc-string-face) ;Buffer list
'("^\\(....[*]shell.*\\)" 1 font-lock-reference-face t) ;shell buff
'("^....[*].*" . font-lock-string-face) ;Temp buffer
'("^....[+].*" . font-lock-keyword-face) ;Mail buffer
'("^....[A-Za-z0-9/]*[-][+].*" . font-lock-keyword-face) ;Mail buffer
'(".*Dired.*" . font-lock-function-name-face)
)))
; This hook run after buffer formatted, so it is necessary to re-fontify it..;
(add-hook 'electric-buffer-menu-mode-hook
'(lambda ()
(font-lock-mode 1)
(font-lock-fontify-buffer)))
I've never been able to figure out why it doesn't work with gnu emacs.
Help!
next reply other threads:[~2008-04-24 19:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-24 19:49 Dan Espen [this message]
2008-04-24 22:35 ` Electric Buffer mode too boring 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
[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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=icd4ofowxb.fsf@mk.telcordia.com \
--to=daneno@more.mk.spamtelcordia.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).