aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd/user/emacs.service.d
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2023-05-20 08:29:08 -0700
committerRaúl Benencia <id@rbenencia.name>2023-05-20 08:29:08 -0700
commit97eb0f08463c9a749dd418898808b8cddd63b26c (patch)
treec3f3b6052f29d77e5e5f8928b6fd870d269d5ef9 /.config/systemd/user/emacs.service.d
parent8a7e8b2727e6f2ffd75864cfd3d116e719bdaf42 (diff)
systemd: stop emacs cleanly
Diffstat (limited to '.config/systemd/user/emacs.service.d')
-rw-r--r--.config/systemd/user/emacs.service.d/override.conf3
1 files changed, 3 insertions, 0 deletions
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)"
nihil fit ex nihilo