[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: different colors in buffer-list
From: |
Glenn Morris |
Subject: |
Re: different colors in buffer-list |
Date: |
Wed, 21 Apr 2004 00:24:45 +0100 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Fabian Braennstroem wrote:
> how can I use different colors for a certain file-format in the
> buffer-list? E.G. all tex-files have a yellow background, the
> dired-buffers a green, the shell-buffer a ....
One way is to use ibuffer, which offers an all-round improved buffer
menu experience. It will be part of future Emacs distributions, but is
not in any of the released versions, IIRC. I think it does some
highlighting by default, and it is easily extendable through
ibuffer-fontification-alist. For example:
(defface ibuffer-compress-face '((t (:foreground "Red" :weight bold)))
"Ibuffer compress face")
(add-to-list
'ibuffer-fontification-alist
'(5 (string-match
(concat "\\.\\("
(regexp-opt '("tar" "tgz" "arj" "taz" "lzh" "zip" "z"
"gz" "bz2" "deb" "rpm" "bun" "bgz"))
"\\)$")
(buffer-name))
ibuffer-compress-face))
- Re: different colors in buffer-list,
Glenn Morris <=