|
From: | Kevin Rodgers |
Subject: | Re: Keep losing work in non-file-visiting buffers |
Date: | Tue, 02 Dec 2003 16:42:31 -0700 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
sebyte wrote:
Anyone know of a variable/method/function that will prompt you to save your work in non-file-visiting buffers before you kill them or kill your emacs session?
(setq-default buffer-offer-save t) ; for save-buffers-kill-emacs (add-hook 'kill-buffer-query-functions ; for kill-buffer (lambda () (or buffer-file-name (not (buffer-modified-p)) (yes-or-no-p (format "Buffer %s modified; kill anyway? " (buffer-name)))))) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |