From e5cc2ec33db5b674eda80c5ba45230889e64932e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 25 Jul 2021 15:34:18 +0100 Subject: (SystemD)~emacs service to not use a name for the daemon In hindsight, what other daemon am I going to be using for Emacs? It's not like I'll be starting two different servers! Even if I was, Emacs has the ability to assign a new unique name for the server depending on if another server is already running. Also, having a name for the main server makes it harder for other services (such as notmuch-mua.service) to find your Emacs instance. --- SystemD/.config/systemd/user/emacs.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SystemD/.config/systemd') diff --git a/SystemD/.config/systemd/user/emacs.service b/SystemD/.config/systemd/user/emacs.service index d7ba157..3c98bfb 100644 --- a/SystemD/.config/systemd/user/emacs.service +++ b/SystemD/.config/systemd/user/emacs.service @@ -3,8 +3,8 @@ Description=Emacs [Service] Type=forking -ExecStart=/usr/bin/emacs --bg-daemon=MAIN -ExecStop=/usr/bin/emacsclient --socket-name=MAIN --eval "(kill-emacs)" +ExecStart=/usr/local/bin/emacs --bg-daemon +ExecStop=/usr/local/bin/emacsclient --eval "(kill-emacs)" Restart=on-failure TimeoutStartSec=0 -- cgit v1.2.3-13-gbd6f