From abd841042da7c49c3d56b3a162c2196359324097 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 24 Nov 2014 23:03:54 +0100 Subject: 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. --- systemd/.config/systemd/user/emacs.socket | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd/.config/systemd/user/emacs.socket 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: -- cgit v1.2.3-54-g00ecf