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

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

Re: Customize dired buffer names


From: Kevin Rodgers
Subject: Re: Customize dired buffer names
Date: Sat, 16 Jan 2010 14:04:03 -0700
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Francis Moreau wrote:
I'd like to change the way that the dired buffers got their names.

For now it's juste the name of the directory, but I'd like to add
"<Dired>" as prefix for example.

Is it possible ?

It is not customizable by design, but it should be possible:

(defadvice dired-noselect (after rename-buffer activate)
  "Add <Dired> prefix to buffer name."
  (with-current-buffer ad-return-value
    (rename-buffer (concat "<Dired>" (buffer-name)))))

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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