I often leave Emacs (actually Aquamacs) open and wind up with a lot of buffers cluttering up my auto-complete. I would like to be able to close them all and start fresh. Right now I quit and reopen Emacs but that feels wrong.
Is there a way to close all buffers in Emacs?
This is Emacs 24.4 / Aquamacs 3.2.
(defun close-all-buffers () (interactive) (mapc 'kill-buffer (buffer-list)))
-- stackoverflow.com/a/3417472/2112489 – lawlist Mar 30 '15 at 22:04clean-buffer-list
, which will close all buffers that have been unused for some time. – Juancho Mar 31 '15 at 14:07