Marc Auslander writes:
> After upgrade to squeeze, I have the following emacs curiosity.
>
> I bind C-xC-c to:
>
> (defun ctrlxctrlc () "Careful exit from emacs"
> (interactive)
> (if (y-or-n-p "Do you really want to exit emacs? ")
>(save-buffers-kill-emacs)
> (message "")
> )
On 2011-10-07 04:50 +0200, Marc Auslander wrote:
> After upgrade to squeeze, I have the following emacs curiosity.
>
> I bind C-xC-c to:
>
> (defun ctrlxctrlc () "Careful exit from emacs"
> (interactive)
> (if (y-or-n-p "Do you really want to exit emacs? ")
>(save-buffers-kill-emacs)
>
After upgrade to squeeze, I have the following emacs curiosity.
I bind C-xC-c to:
(defun ctrlxctrlc () "Careful exit from emacs"
(interactive)
(if (y-or-n-p "Do you really want to exit emacs? ")
(save-buffers-kill-emacs)
(message "")
))
to avoid accidentally closing emacs.
Un
3 matches
Mail list logo