summaryrefslogtreecommitdiff
path: root/.config/systemd
diff options
context:
space:
mode:
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