help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: different colors in buffer-list


From: Fabian Braennstroem
Subject: Re: different colors in buffer-list
Date: Wed, 21 Apr 2004 08:00:33 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Hello Glenn,

Glenn Morris <gmorris+news@ast.cam.ac.uk> writes:

> 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))

Thanks a lot! That's what I wanted :-)

Greetings!
-- 
Fabian Braennstroem
Duesseldorf/Berlin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]