[Top][All Lists]

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

Re: delete unneeded buffers

From: Colin S. Miller
Subject: Re: delete unneeded buffers
Date: Tue, 19 Aug 2008 19:58:55 +0100
User-agent: Icedove (X11/20080724)

Fabian Braennstroem wrote:

    does anyone know of a good way to kill unneeded buffers?
    I think of something which kills all unvisible dired
    buffers. Would be nice, if anyone has a suggestion.


If you use ibuffer instead of buffer (normally on C-x b) you can do this.

To try out ibuffer, use M-x ibuffer-list-buffers.
To replace buffer with ibuffer, place in your

(require 'ibuffer)
(global-set-key [(control x) (control b)] 'ibuffer-list-buffers)

Once in *Ibuffer*
/ m RET dired-mode RET
to list only the dired buffers,
move the cursor to [Default],
then press
d x
to select and delete all dired buffers,
then press
/ /
to list all buffers again.

You can also use
s v
to sort by last view time, and
s m
to sort by major-mode.

Colin S. Miller

Replace the obvious in my email address with the first three letters of the 
hostname to reply.

reply via email to

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