(Scripts)+eshell option to eselect
Option makes it easier to launch eshell instantly, which I've found to be doing quite often.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
case "$(printf "new\nstop\nrestart" | dmenu -p "eserver: ")" in
|
case "$(printf "new\nstop\nrestart\neshell" | dmenu -p "eserver: ")" in
|
||||||
"restart")
|
"restart")
|
||||||
emacsclient -s MAIN --eval "(kill-emacs)";
|
emacsclient -s MAIN --eval "(kill-emacs)";
|
||||||
notify-send "Halted Emacs server";
|
notify-send "Halted Emacs server";
|
||||||
@@ -12,4 +12,8 @@ case "$(printf "new\nstop\nrestart" | dmenu -p "eserver: ")" in
|
|||||||
"new")
|
"new")
|
||||||
notify-send "Launching Emacs";
|
notify-send "Launching Emacs";
|
||||||
emacsclient -s MAIN -c -a=emacs;;
|
emacsclient -s MAIN -c -a=emacs;;
|
||||||
|
"eshell")
|
||||||
|
notify-send "Launching Eshell";
|
||||||
|
emacsclient -s MAIN -c -a=emacs --eval '(let ((b (or (get-buffer "*eshell*") (eshell))))
|
||||||
|
(switch-to-buffer b))'
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user