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 ....
Greetings!
--
Fabian Braennstroem
Duesseldorf/Berlin
> 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))