On Jan 30, 8:19 am, "step" <fxl...@xxxxxxxxx> wrote:
> 1. this is any command to kill all buffers ,not close the emacs
> 2. if only i want to close the buffers of some mode (ep: c
> files),can i do it?
I took kill-some-buffers and modified it a bit.
(defun kill-all-buffers (&optional list)
"For each buffer in LIST, kill it. If it's been modified don't do
LIST defaults to all existing live buffers."
(if (null list)
(setq list (buffer-list)))
(let* ((buffer (car list))
(name (buffer-name buffer)))
(and (not (string-equal name ""))
(/= (aref name 0) ? )
(if (not (buffer-modified-p buffer)) t )
(setq list (cdr list))))
help-gnu-emacs mailing list