unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Glenn Morris <gmorris+news@ast.cam.ac.uk>
Subject: Re: different colors in buffer-list
Date: Wed, 21 Apr 2004 00:24:45 +0100	[thread overview]
Message-ID: <mysmeydygy.fsf@xpc14.ast.cam.ac.uk> (raw)
In-Reply-To: 87pta3p165.fsf@tfdpc12.tfd.chalmers.se

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

       reply	other threads:[~2004-04-20 23:24 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 ` Glenn Morris [this message]
2004-04-21  6:00   ` different colors in buffer-list Fabian Braennstroem

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=mysmeydygy.fsf@xpc14.ast.cam.ac.uk \
    --to=gmorris+news@ast.cam.ac.uk \
    /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).