Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I kill all 'buffers' in my emacs

Tags:

emacs

Is there a command to kill all buffers in my emacs? instead of having me doing 'Ctrl -k ' one by one until there is no more buffer?

Thank you.

like image 689
michael Avatar asked Dec 20 '12 22:12

michael


1 Answers

M-x ibuffer RET
tDy

I highly recommend binding C-xC-b to ibuffer as a replacement for the default binding:

(global-set-key (kbd "C-x C-b") 'ibuffer)

(I've also bound my <menu> key to ibuffer, as I use it so often.)

n.b. You can use C-k and x in the regular list-buffers to mark and kill buffers, but I think everyone should be using ibuffer, really.

like image 191
phils Avatar answered Oct 21 '22 05:10

phils