establishes systemd service for emacs daemon
This commit is contained in:
parent
21388d0416
commit
b008def7df
3 changed files with 15 additions and 1 deletions
12
config/.config/systemd/user/emacs.service
Normal file
12
config/.config/systemd/user/emacs.service
Normal 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
|
2
udeps.sh
2
udeps.sh
|
@ -13,6 +13,8 @@ sudo apt-get -my install git \
|
||||||
mc \
|
mc \
|
||||||
curl \
|
curl \
|
||||||
aptitude \
|
aptitude \
|
||||||
|
nnn \
|
||||||
|
ack
|
||||||
|
|
||||||
read -n1 -p $'Does this system need ssh access?\n' REPLY
|
read -n1 -p $'Does this system need ssh access?\n' REPLY
|
||||||
if [[ $REPLY == [Yy] ]]; then
|
if [[ $REPLY == [Yy] ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue