[Unit] Description=Emacs text editor Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ [Service] Type=forking ExecStart=/home/case/.local/bin/emacs --daemon ExecStop=/home/case/.local/bin/emacsclient --eval "(kill-emacs)" Restart=on-always [Install] WantedBy=default.target