summaryrefslogtreecommitdiff
path: root/.config/systemd
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-20 16:56:35 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-20 16:56:51 +0200
commit25bb0ea54cc59a9a2e1604d95790dbc54a37376a (patch)
treed01216b50aad93aa29845b4d20c738f612f3c1be /.config/systemd
parent2d531217c586a45fbbf9e26a9792cb3a8e35c2ac (diff)
systemd: Add a service for the ‘ec’ daemon
Diffstat (limited to '.config/systemd')
-rw-r--r--.config/systemd/user/.gitignore1
-rw-r--r--.config/systemd/user/ec.service13
2 files changed, 14 insertions, 0 deletions
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