dotfiles/systemd/.config/systemd/user/emacs.service

13 lines
328 B
Desktop File

[Unit]
Description=Emacs: the extensible, self-documenting text editor
After=save-environment-variables@emacs.service
Requires=save-environment-variables@emacs.service
[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Restart=always
[Install]
WantedBy=default.target