all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Electric Buffer mode too boring
@ 2008-04-24 19:49 Dan Espen
  2008-04-24 22:35 ` Drew Adams
       [not found] ` <mailman.10791.1209076628.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Dan Espen @ 2008-04-24 19:49 UTC (permalink / raw)
  To: help-gnu-emacs


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!


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-04-25 15:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [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)

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.