all repos — nixfiles @ af49c8fc39c05846a144e4ecd58704c8e7079db5

System and user configuration, managed by nix and home-manager

Emacs: only delete a frame when calling exit-emacs in a daemon

Alan Pearce
commit

af49c8fc39c05846a144e4ecd58704c8e7079db5

parent

821fca1da57005f24e2395a07f484ba4e35320c8

1 file changed, 3 insertions(+), 1 deletion(-)

jump to
M emacs/init.elemacs/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)))