establishes systemd service for emacs daemon

This commit is contained in:
Stefen Auris 2019-12-02 14:30:06 -05:00
parent 21388d0416
commit b008def7df
3 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,12 @@
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon=instance1
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Restart=on-failure
[Install]
WantedBy=default.target

View file

@ -13,6 +13,8 @@ sudo apt-get -my install git \
mc \
curl \
aptitude \
nnn \
ack
read -n1 -p $'Does this system need ssh access?\n' REPLY
if [[ $REPLY == [Yy] ]]; then