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

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

Re: C-x C-c needs to say more than just "save file...?"


From: Raymond Zeitler
Subject: Re: C-x C-c needs to say more than just "save file...?"
Date: Wed, 3 Jan 2001 13:25:42 -0500

I like the snippet, but my approach would be to unbind the keystroke.  Why 
would anyone ever want to kill emacs, anyway? ;-)

In article <address@hidden>, address@hidden 
says...
> From: Dan Jacobson <address@hidden>
> Subject: C-x C-c needs to say more than just "save file...?"
> Date: 02 Jan 2001 09:10:23 +0800
> 
> > Yeah yeah, I know what you're gonna say, there's some hook & variable
> > all ready to optionally fix this... but I'm really just out for the
> > moral victory of admission that this is a little too little to say
> > about the death of an emacs that might have been alive for a few
> > days... in the newbie default case especially.
> 
> you mean like this?  ;-)
> 
> ;; ask before killing emacs
> (setq kill-emacs-query-functions
>       (cons (lambda ()
>             (yes-or-no-p "Quit Emacs? "))
>           kill-emacs-query-functions))
> 
> i added the above snippet to my .emacs last month or so because i had
> accidentally typed C-x C-c one too many times.  
[snip]



reply via email to

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