[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remove all directory listings buffers
From: |
Tim X |
Subject: |
Re: Remove all directory listings buffers |
Date: |
Fri, 27 Nov 2009 08:37:59 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
pjb@informatimago.com (Pascal J. Bourguignon) writes:
> rotlas <katofa@gmail.com> writes:
>
>> I often end up with lots of directory buffers (those buffers with "dired by
>> name" mode), after navigating in the filesystem in order to open files. Is
>> there an easy way to get rid of all those buffers at once, and leaving the
>> other?
>
> You could write a little emacs command to do that, but it should also
> be easy enough to use:
>
> C-x C-b (or M-x list-buffers RET)
>
> In the buffer list, you can mark buffers for killing with d (and move
> down and up with n and p). When you're done, type x to execute the
> orders.
Emacs 23 also introduced the new command 'kill-matching-buffers', which
may be of help. Personally, I use Pascal's method. I also tend not to
worry about lots of buffers hanging around - they are not consuming much
resources and I don't really see them unless I need/want to. Personally,
I think its good practice to get used to lots of buffers hanging around
- I often have more than 100 open buffers. There are things you can
configure if you don't want them all showing up in buffer listings etc,
depending on whther you use one of the many packages to assist with
buffer switching/management or not.
I also seem to remember some config setting for dired that wold make it
re-use buffers, but maybe I imagined that! Possibly worth a look in the
dired and dired-aux config stuff
HTH
Tim
--
tcross (at) rapttech dot com dot au
- Re: Remove all directory listings buffers, (continued)
Message not available
Re: Remove all directory listings buffers, Pascal J. Bourguignon, 2009/11/25
Re: Remove all directory listings buffers, harven, 2009/11/25
Re: Remove all directory listings buffers, Colin S. Miller, 2009/11/25