From: Fabian Braennstroem <f.braennstroem@gmx.de>
Subject: Re: different colors in buffer-list
Date: Wed, 21 Apr 2004 08:00:33 +0200 [thread overview]
Message-ID: <87n055j2f2.fsf@tfdpc12.tfd.chalmers.se> (raw)
In-Reply-To: mysmeydygy.fsf@xpc14.ast.cam.ac.uk
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
prev parent reply other threads:[~2004-04-21 6:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87pta3p165.fsf@tfdpc12.tfd.chalmers.se>
2004-04-20 23:24 ` different colors in buffer-list Glenn Morris
2004-04-21 6:00 ` Fabian Braennstroem [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87n055j2f2.fsf@tfdpc12.tfd.chalmers.se \
--to=f.braennstroem@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).