aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xScripts/.local/scripts/eselect5
-rw-r--r--SystemD/.config/systemd/user/emacs.service4
2 files changed, 4 insertions, 5 deletions
diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect
index 5f11f5b..d086b7e 100755
--- a/Scripts/.local/scripts/eselect
+++ b/Scripts/.local/scripts/eselect
@@ -9,9 +9,8 @@ case "$(printf "new\nstop\nrestart\neshell" | dmenu -p "eserver: ")" in
notify-send "Halted Emacs server";;
"new")
notify-send "Launching Emacs";
- emacsclient --socket-name=MAIN -c --alternate-editor=emacs;;
+ emacsclient -c --alternate-editor=emacs;;
"eshell")
notify-send "Launching Eshell";
- emacsclient --socket-name=MAIN -c --alternate-editor=emacs --eval '(let ((b (or (get-buffer "*eshell*") (eshell))))
- (switch-to-buffer b))'
+ emacsclient -c --alternate-editor=emacs --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';;
esac
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