[emacs] Rename emacs service to override the system service

I used to have both "emacsd.service" and "emacs.service"
This commit is contained in:
Sebastian Schulze 2019-10-25 22:23:38 +02:00
parent 11dec5c8e6
commit f776ced6cf
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
3 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1 @@
/home/bascht/.config/systemd/user/emacs.service

View File

@ -4,8 +4,8 @@ Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
ExecStart=/usr/bin/emacs --bg-daemon=daemacs
ExecStop=/usr/bin/emacsclient -s daemacs --eval "(save-buffers-kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure

View File

@ -1,3 +1,3 @@
#!/bin/bash
exec emacsclient -c $*
exec emacsclient -s daemacs -c "${@}"