summary refs log tree commit diff stats
path: root/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el4
1 files changed, 3 insertions, 1 deletions
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)))