diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-20 16:56:35 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-20 16:56:51 +0200 |
commit | 25bb0ea54cc59a9a2e1604d95790dbc54a37376a (patch) | |
tree | d01216b50aad93aa29845b4d20c738f612f3c1be /.config/systemd | |
parent | 2d531217c586a45fbbf9e26a9792cb3a8e35c2ac (diff) |
systemd: Add a service for the ‘ec’ daemon
Diffstat (limited to '.config/systemd')
-rw-r--r-- | .config/systemd/user/.gitignore | 1 | ||||
-rw-r--r-- | .config/systemd/user/ec.service | 13 |
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 |