From 97eb0f08463c9a749dd418898808b8cddd63b26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sat, 20 May 2023 08:29:08 -0700 Subject: systemd: stop emacs cleanly --- .config/systemd/user/emacs.service.d/override.conf | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config') diff --git a/.config/systemd/user/emacs.service.d/override.conf b/.config/systemd/user/emacs.service.d/override.conf index d250657..f471fa9 100644 --- a/.config/systemd/user/emacs.service.d/override.conf +++ b/.config/systemd/user/emacs.service.d/override.conf @@ -1,2 +1,5 @@ [Unit] Requires=graphical-session.target + +[Service] +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" -- cgit v1.2.3