[Top][All Lists]

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

Re: Mac: Don't quit Emacs when window is closed

From: Marcin Borkowski
Subject: Re: Mac: Don't quit Emacs when window is closed
Date: Sun, 17 Jan 2016 23:40:12 +0100
User-agent: mu4e 0.9.13; emacs

On 2016-01-17, at 21:07, Luis Gerhorst <> wrote:

> Hi,
> I have the problem that I always quit Emacs by mistake when I am done with a 
> task by clicking the button to close the Emacs window. I have a few ideas / 
> questions:
> - Wouldn't it be a good idea to make Emacs act like most Mac application and 
> not quit the application when the window is closed? Is there some reason why 
> this is not possible?
> - How can I disable the button to close the window or make it call 
> suspend-frame instead of save-buffers-kill-emacs?

Would this help a bit?

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

> Best wishes from Germany,
> Luis Gerhorst


Marcin Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

reply via email to

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