From b008def7df60745c67f7484e85e472103a052c1d Mon Sep 17 00:00:00 2001 From: steveokard Date: Mon, 2 Dec 2019 14:30:06 -0500 Subject: [PATCH] establishes systemd service for emacs daemon --- config/.config/systemd/user/emacs.service | 12 ++++++++++++ {ssh => config}/.ssh/config | 0 udeps.sh | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 config/.config/systemd/user/emacs.service rename {ssh => config}/.ssh/config (100%) diff --git a/config/.config/systemd/user/emacs.service b/config/.config/systemd/user/emacs.service new file mode 100644 index 0000000..9568201 --- /dev/null +++ b/config/.config/systemd/user/emacs.service @@ -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 \ No newline at end of file diff --git a/ssh/.ssh/config b/config/.ssh/config similarity index 100% rename from ssh/.ssh/config rename to config/.ssh/config diff --git a/udeps.sh b/udeps.sh index 7f584ee..b9847a3 100755 --- a/udeps.sh +++ b/udeps.sh @@ -7,12 +7,14 @@ sudo apt-get -my install git \ etckeeper \ tmux \ zsh \ - vim \ + vim \ powerline\ htop \ mc \ curl \ aptitude \ + nnn \ + ack read -n1 -p $'Does this system need ssh access?\n' REPLY if [[ $REPLY == [Yy] ]]; then