I looked around to be sure, that none had this issue earlier.
Okay, sometimes I'm having too many buffers to manage. So I would like to kill all these buffers, except the buffers that are currently opened in my windows and elscreen.
I suspect there should be an existing function for that, like in Vim but I couldn't found it inside Emacs and wiki pages.
Any suggestion would be greatly appreciated.
C-x C-b
will bring up the buffer list, where you can mark the current buffer (usually the one on the top of the list) by pressingm
, then revert the selection by pressingt
, then kill all selected buffers by pressingD
(these are the same keybindings you'd use in Dired).projectile
too, there isibuffer-projectile
package you can install. That will allow you to kill all buffers specific to a projectile project in one fell swoop (m
on project name,D
)ibuffer
is not the default. But you can always invokeibuffer-list-buffers
manually, no matter what you use.