From 25bb0ea54cc59a9a2e1604d95790dbc54a37376a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 20 Aug 2023 16:56:35 +0200 Subject: systemd: Add a service for the ‘ec’ daemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/systemd/user/.gitignore | 1 + .config/systemd/user/ec.service | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .config/systemd/user/.gitignore create mode 100644 .config/systemd/user/ec.service (limited to '.config/systemd') diff --git a/.config/systemd/user/.gitignore b/.config/systemd/user/.gitignore new file mode 100644 index 0000000..e6e3305 --- /dev/null +++ b/.config/systemd/user/.gitignore @@ -0,0 +1 @@ +default.target.wants/ diff --git a/.config/systemd/user/ec.service b/.config/systemd/user/ec.service new file mode 100644 index 0000000..914c83a --- /dev/null +++ b/.config/systemd/user/ec.service @@ -0,0 +1,13 @@ +[Unit] +Description=Emacs calculator (GUI) +Documentation=info:calc https://www.gnu.org/software/emacs/manual/html_mono/calc.html + +[Service] +Type=forking +ExecStart=/usr/bin/emacs --daemon=ec --init-directory=/home/thomas/.config/ec +ExecStop=/usr/bin/emacsclient -s ec -e '(kill-emacs)' +Environment=XDG_CONFIG_HOME=/home/thomas/.config +Restart=no + +[Install] +WantedBy=default.target -- cgit v1.2.3