Emacs: only delete a frame when calling exit-emacs in a daemon
Alan Pearce alan@alanpearce.co.uk
Sat, 18 May 2013 12:53:05 +0100
1 files changed, 3 insertions(+), 1 deletions(-)
jump to
M emacs/init.el → emacs/init.el
@@ -467,7 +467,9 @@ (use-package mb-depth :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)))