Run systemctl --user enable --now emacs
Which should give in /usr/local/lib/systemd/user/emacs.service:
[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)" #Environment=SSH_AUTH_SOCK=%t/keyring/ssh Restart=on-failure [Install] WantedBy=default.target
systemctl --user stop emacs
systemctl --user daemon-reload
systemctl --user start emacs
No comments:
Post a Comment