[OS X Emacs] Avoiding accidental quitting

Carsten Bormann cabo at tzi.org
Wed Feb 2 17:11:34 EST 2022


Something like 

(setq confirm-kill-emacs 'y-or-n-p)

in your .emacs should save you.

Grüße, Carsten

PS.: Of course, CMD-Q runs fill-paragraph for me...

> On 2022-02-02, at 22:56, Robert Goldman <rpgoldman at sift.info> wrote:
> 
> It's not my favorite MacOS feature that Cmd-W is right next to Cmd-Q...
> 
> I just once again pressed Cmd-Q, shutting down my long running emacs with all the files I needed open, etc.
> 
> Is there some way to fix Emacs so that either:
> 
> 	• (preferred) It asks me if I really want to quit when I press Cmd-Q or
> 
> 	• (less awesome, but still great) I just turn off Cmd-Q as quit and go back to using C-x C-c, which has always worked fine.
> 
> Thanks!
> 
> 
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx



More information about the MacOSX-Emacs mailing list