diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service new file mode 100644 index 0000000..e3ae864 --- /dev/null +++ b/.config/systemd/user/emacs.service @@ -0,0 +1,12 @@ +[Unit] +Description=Emacs text editor +Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ + +[Service] +Type=simple +ExecStart=/usr/bin/emacs --fg-daemon +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +Restart=on-failure + +[Install] +WantedBy=default.target