From 5de023c6a09f854940c3654245b3628b0f932045 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 18 Aug 2021 08:07:18 +0000 Subject: [PATCH] added emacs systemd user unit --- emacs/.config/systemd/user/emacs.service | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/emacs/.config/systemd/user/emacs.service b/emacs/.config/systemd/user/emacs.service new file mode 100644 index 0000000..a571d68 --- /dev/null +++ b/emacs/.config/systemd/user/emacs.service @@ -0,0 +1,15 @@ +[Unit] +Description=Emacs text editor +Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ + +[Service] +Type=notify +ExecStart=/usr/bin/emacs --fg-daemon +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +# The location of the SSH auth socket varies by distribution, and some +# set it from PAM, so don't override by default. +# Environment=SSH_AUTH_SOCK=%t/keyring/ssh +Restart=on-failure + +[Install] +WantedBy=default.target -- Gitblit v1.9.3