summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-11-24 23:03:54 +0100
committerGravatar Tom Willemse2014-11-24 23:03:54 +0100
commitabd841042da7c49c3d56b3a162c2196359324097 (patch)
treebab95953a222f0b791567011c1f7128b86582d0b /systemd
parent34c361cc6613d82ca0695f1d36ad79e728cd7817 (diff)
downloaddotfiles-abd841042da7c49c3d56b3a162c2196359324097.tar.gz
dotfiles-abd841042da7c49c3d56b3a162c2196359324097.zip
Add emacs.socket
By starting Emacs on-demand rather than on login we can carry over the environment variables available when the emacs daemon is actually started. Provided they've been imported by systemd.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/.config/systemd/user/emacs.socket15
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd/.config/systemd/user/emacs.socket b/systemd/.config/systemd/user/emacs.socket
new file mode 100644
index 0000000..950afce
--- /dev/null
+++ b/systemd/.config/systemd/user/emacs.socket
@@ -0,0 +1,15 @@
+[Unit]
+Description=Emacs Socket
+Conflicts=emacs.service
+
+[Socket]
+ListenStream=/tmp/emacs%U/server
+SocketMode=0700
+DirectoryMode=0700
+
+[Install]
+WantedBy=sockets.target
+
+# Local Variables:
+# mode: conf-unix
+# End: