From a1d1aab0fac0de7e29e975a0bc8a4d5c7628e6cc Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 12 May 2019 22:53:21 -0400 Subject: [PATCH] Add emacs service --- .../systemd/user/default.target.wants/emacs.service | 1 + systemd/.config/systemd/user/emacs.service | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 120000 systemd/.config/systemd/user/default.target.wants/emacs.service create mode 100644 systemd/.config/systemd/user/emacs.service diff --git a/systemd/.config/systemd/user/default.target.wants/emacs.service b/systemd/.config/systemd/user/default.target.wants/emacs.service new file mode 120000 index 0000000..bebf0b3 --- /dev/null +++ b/systemd/.config/systemd/user/default.target.wants/emacs.service @@ -0,0 +1 @@ +/home/powellc/.config/systemd/user/emacs.service \ No newline at end of file diff --git a/systemd/.config/systemd/user/emacs.service b/systemd/.config/systemd/user/emacs.service new file mode 100644 index 0000000..d611118 --- /dev/null +++ b/systemd/.config/systemd/user/emacs.service @@ -0,0 +1,11 @@ +[Unit] +Description=Emacs: the extensible, self-documenting text editor + +[Service] +Type=forking +ExecStart=/usr/bin/emacs --daemon +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +Restart=always + +[Install] +WantedBy=default.target