2006-09-08

Emacs: Kill current buffer without confirmation if buffer is not modified

(defun josh/kill-current-buffer ()
"Kill the current buffer without confirmation unless explicitly modified."
(interactive)
(kill-buffer (current-buffer)))

沒有留言:

張貼留言