[emacs] Rename emacs service to override the system service
I used to have both "emacsd.service" and "emacs.service"
This commit is contained in:
parent
11dec5c8e6
commit
f776ced6cf
|
@ -0,0 +1 @@
|
|||
/home/bascht/.config/systemd/user/emacs.service
|
|
@ -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
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
exec emacsclient -c $*
|
||||
exec emacsclient -s daemacs -c "${@}"
|
||||
|
|
Loading…
Reference in New Issue