aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xScripts/.local/scripts/eselect11
1 files changed, 6 insertions, 5 deletions
diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect
index 8f811b7..d3f62c9 100755
--- a/Scripts/.local/scripts/eselect
+++ b/Scripts/.local/scripts/eselect
@@ -2,18 +2,19 @@
case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
"restart")
- systemctl --user restart emacs;
+ emacsclient --eval "(save-buffers-kill-emacs)";
+ emacs --bg-daemon;
notify-send "eselect: Restarted Emacs server";;
"stop")
- systemctl --user stop emacs;
+ emacsclient --eval "(save-buffers-kill-emacs)";
notify-send "eselect: Halted Emacs server";;
"new")
notify-send "eselect: Launching Emacs";
- emacsclient -c -a "emacs";;
+ emacsclient -c -a "";;
"eshell")
notify-send "eselect: Launching Eshell";
- emacsclient -c -a "emacs" --eval '(progn (eshell) (delete-other-windows))';;
+ emacsclient -c -a "" --eval "(progn (eshell) (delete-other-windows))";;
"mail")
notify-send "eselect: Launching notmuch";
- emacsclient -c -a "emacs" --eval '(progn (notmuch) (delete-other-windows))';;
+ emacsclient -c -a "" --eval "(progn (notmuch) (delete-other-windows))";;
esac