[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Saving Buffer
From: |
Henrik Enberg |
Subject: |
Re: Saving Buffer |
Date: |
Tue, 21 Jan 2003 01:31:39 +0100 |
User-agent: |
Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.3.50 (i686-pc-linux-gnu) |
Galen Boyer <galenboyer@hotpop.com> writes:
> (setq kill-emacs-query-functions
> (cons (lambda () (yes-or-no-p "Really kill Emacs? "))
> kill-emacs-query-functions))
>
> This makes sure you don't kill Emacs when you didn't mean it. C-x C-c is
> too easy to hit.
In Emacs 21 there is also `confirm-kill-emacs'.
(setq confirm-kill-emacs 'yes-or-nn-p)