summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index c19ad14..09b6231 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)))