all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Luis Gerhorst <privat@luisgerhorst.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Mac: Don't quit Emacs when window is closed
Date: Sun, 17 Jan 2016 23:40:12 +0100	[thread overview]
Message-ID: <87lh7n96er.fsf@mbork.pl> (raw)
In-Reply-To: <BF9EB32A-565B-49A7-81AB-07EABA707190@luisgerhorst.de>


On 2016-01-17, at 21:07, Luis Gerhorst <privat@luisgerhorst.de> 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

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



  reply	other threads:[~2016-01-17 22:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-17 20:07 Mac: Don't quit Emacs when window is closed Luis Gerhorst
2016-01-17 22:40 ` Marcin Borkowski [this message]
2016-01-18  4:21   ` Random832
2016-01-19 18:31     ` Luis Gerhorst
     [not found]   ` <mailman.2484.1453090928.843.help-gnu-emacs@gnu.org>
2016-01-18 17:05     ` Barry Margolin
2016-01-18 18:03       ` Philipp Stephani
2016-01-21 17:36       ` repeating a search a certain number of times Timur Aydin
2016-01-21 18:10         ` Drew Adams
2016-01-18  7:15 ` Mac: Don't quit Emacs when window is closed Nick Helm
2016-01-19 18:35   ` Luis Gerhorst
2016-01-19 21:46     ` Luis Gerhorst
2016-01-19 22:04     ` Nick Helm
2016-01-18  9:11 ` tomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lh7n96er.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=help-gnu-emacs@gnu.org \
    --cc=privat@luisgerhorst.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.