Mercurial > dotfiles
comparison .config/systemd/user/emacs.service @ 493:1bb1c44ce49c
systemd: unit file for auto-starting emacs daemon
| author | Augie Fackler <raf@durin42.com> |
|---|---|
| date | Wed, 15 Jul 2020 20:30:26 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 492:26caf7bf8805 | 493:1bb1c44ce49c |
|---|---|
| 1 # systemctl enable --user emacs | |
| 2 # systemctl start --user emacs | |
| 3 [Unit] | |
| 4 Description=Emacs text editor | |
| 5 Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ | |
| 6 | |
| 7 [Service] | |
| 8 Type=forking | |
| 9 ExecStart=/usr/bin/emacs --daemon | |
| 10 ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" | |
| 11 Environment=SSH_AUTH_SOCK=%t/keyring/ssh | |
| 12 Restart=on-failure | |
| 13 | |
| 14 [Install] | |
| 15 WantedBy=default.target |
