2006-09-08

Emacs: Revert the current buffer without confirmation

(defun josh/revert-buffer ()
"Revert the current buffer without confirmation unless explicitly modified."
(interactive)
(revert-buffer t (not (buffer-modified-p))))

沒有留言:

張貼留言