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

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

Re: confirm to exist when click "X" on the window decoration


From: Glenn Morris
Subject: Re: confirm to exist when click "X" on the window decoration
Date: Mon, 02 Nov 2009 14:16:42 -0800
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Ender wrote:

> Sometimes I click the "X" on the emacs window decoration by mistake,
> emacs will exist without any prompt/waring when there are no file
> changes in all opening buffers. I want to know if there are anyway to
> make emacs ask to confirm to exist on this situation?

(setq confirm-kill-emacs 'yes-or-no-p)

If you want to be prompted by the "X" but not by, eg C-x C-c, you'll
have to do a bit more work.


reply via email to

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