From f505c9556cea98c64fd13da4d433a1ba4637cfb6 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 2 Jan 2022 10:26:29 -0600 Subject: Add emacs.service --- systemd/user/emacs.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 systemd/user/emacs.service (limited to 'systemd/user/emacs.service') diff --git a/systemd/user/emacs.service b/systemd/user/emacs.service new file mode 100644 index 0000000..6a333d4 --- /dev/null +++ b/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 +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +Restart=on-failure + +[Install] +WantedBy=default.target \ No newline at end of file -- cgit 1.4.1-21-gabe81