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

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

Re: Saving Buffer


From: Stefan Monnier <address@hidden>
Subject: Re: Saving Buffer
Date: 20 Jan 2003 19:15:19 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

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

`kill-emacs-query-functions' could actually contain a single function
rather than a list of functions.  For that reason and a bunch of others,
it is recommended to use

   (add-hook 'kill-emacs-query-functions
             (lambda () (yes-or-no-p "Really kill Emacs? ")))

instead.


        Stefan


reply via email to

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