all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* 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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.