From af49c8fc39c05846a144e4ecd58704c8e7079db5 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 18 May 2013 12:53:05 +0100 Subject: Emacs: only delete a frame when calling exit-emacs in a daemon --- emacs/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index c19ad14c..09b62313 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -467,7 +467,9 @@ Values: `desktop', `server', `laptop'") :defer t :idle (minibuffer-depth-indicate-mode t)) -(defalias 'exit-emacs 'save-buffers-kill-emacs) +(if (daemonp) + (defalias 'exit-emacs #'delete-frame) + (defalias 'exit-emacs #'save-buffers-kill-emacs)) (use-package lacarte :bind (("M-`" . lacarte-execute-menu-command))) -- cgit 1.4.1