From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Electric Buffer mode too boring Date: Thu, 24 Apr 2008 19:49:36 GMT Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209074272 13568 80.91.229.12 (24 Apr 2008 21:57:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2008 21:57:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 23:58:28 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jp9SV-0001af-Ek for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2008 23:58:27 +0200 Original-Received: from localhost ([127.0.0.1]:60587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jp9Rq-0003PS-8G for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2008 17:57:46 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!bigfeed.bellsouth.net!news.bellsouth.net!cycny01.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc01.POSTED!d15a3661!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090015 (Oort Gnus v0.15) XEmacs/21.4 (Constant Variable, i386-redhat-linux) Cancel-Lock: sha1:ma1rchb5RiBwR86Ogx4q8a1uzAs= Original-Lines: 29 Original-NNTP-Posting-Host: 96.240.0.111 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: trnddc01 1209066576 96.240.0.111 (Thu, 24 Apr 2008 15:49:36 EDT) Original-NNTP-Posting-Date: Thu, 24 Apr 2008 15:49:36 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:158153 X-Mailman-Approved-At: Thu, 24 Apr 2008 17:57:21 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53520 Archived-At: 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!