aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/eselect
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-09-21 22:11:00 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-09-21 22:11:00 +0100
commit7a28e20e827023e71ae8d694e35090a174d7da21 (patch)
treebb443f8ac137ae637cf47d7c31897d1058ed118a /Scripts/.local/scripts/eselect
parentcad9e1b94d8af0c59282c5237cdde83013ea43d3 (diff)
downloaddotfiles-7a28e20e827023e71ae8d694e35090a174d7da21.tar.gz
dotfiles-7a28e20e827023e71ae8d694e35090a174d7da21.tar.bz2
dotfiles-7a28e20e827023e71ae8d694e35090a174d7da21.zip
(Scripts)~eserver -> eselect
Remove eserver cos it's useless and integrate emacsclient into eselect
Diffstat (limited to 'Scripts/.local/scripts/eselect')
-rwxr-xr-xScripts/.local/scripts/eselect12
1 files changed, 7 insertions, 5 deletions
diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect
index 8eabef8..5fc8415 100755
--- a/Scripts/.local/scripts/eselect
+++ b/Scripts/.local/scripts/eselect
@@ -2,12 +2,14 @@
case "$(printf "new\nstop\nrestart" | dmenu -p "eserver: ")" in
"restart")
- eserver restart;
- notify-send "Restarted eserver";;
+ emacsclient -s MAIN --eval "(kill-emacs)";
+ notify-send "Halted Emacs server";
+ emacs --bg-daemon=MAIN;
+ notify-send "Restarted Emacs server";;
"stop")
- eserver stop;
- notify-send "Halted eserver";;
+ emacsclient -s MAIN --eval "(kill-emacs)";
+ notify-send "Halted Emacs server";;
"new")
notify-send "Launching Emacs";
- eserver --create-frame -a=emacs;;
+ emacsclient -s MAIN -c -a=emacs;;
esac