help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keep losing work in non-file-visiting buffers


From: sebyte
Subject: Re: Keep losing work in non-file-visiting buffers
Date: Wed, 03 Dec 2003 22:09:29 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

(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))))))

actually works too well! am forever being prompted re: buffers that *should* be killed without asking, eg, info, help, gnus buffers etc. oh well, can't have everything your own way i suppose.

sebyte



reply via email to

[Prev in Thread] Current Thread [Next in Thread]