Emacs 26.1. ido, smex
If I want to kill one buffer I use command C-x k
As result I can kill ONE desire buffer. But suppose I need to kill the next buffers:
build.gradle, approfile.json, cascade.update.txt
How I can do this quickly?
ido
isn't designed for that; use the buffer list instead. C-x C-b
opens a buffer containing a list of all buffers that are open. In this buffer you can use C-k
to mark buffers to be deleted, then x
to delete all marked buffers. Since it's a full buffer, you can also use C-s
to search it.
ibuffer
for that, as it allows to mark buffers like you'd do in dired
, for instance by their file names or modes.
Another option which I find really handy is M-x kill-some-buffers
. Really nice option no need for split screens or anything like that it uses the mini buffer keeping things tight, meaning that after the command is executed you won’t have to C-x o C-x k
the remaining open buffer of ibuffer or the listed buffers C-x C-b
ido
, you can kill buffers fromido-switch-buffer
(C-x b
) by typingC-k
while you have the desired buffer as the suggestion.