aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-12-02 15:31:23 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-12-02 15:31:23 +0000
commit250c63ac4b1e1fbc9411c7bb1fb07e63b06a7096 (patch)
tree9570fccbc2eacd46eae9676131cf74562892b303
parent2f9cfb54d8d33c49e2c3c579eaa706b62236bf17 (diff)
downloaddotfiles-250c63ac4b1e1fbc9411c7bb1fb07e63b06a7096.tar.gz
dotfiles-250c63ac4b1e1fbc9411c7bb1fb07e63b06a7096.tar.bz2
dotfiles-250c63ac4b1e1fbc9411c7bb1fb07e63b06a7096.zip
(Scripts)+eshell option to eselect
Option makes it easier to launch eshell instantly, which I've found to be doing quite often.
-rwxr-xr-xScripts/.local/scripts/eselect6
1 files changed, 5 insertions, 1 deletions
diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect
index 5fc8415..fb8f515 100755
--- a/Scripts/.local/scripts/eselect
+++ b/Scripts/.local/scripts/eselect
@@ -1,6 +1,6 @@
#!/bin/bash
-case "$(printf "new\nstop\nrestart" | dmenu -p "eserver: ")" in
+case "$(printf "new\nstop\nrestart\neshell" | dmenu -p "eserver: ")" in
"restart")
emacsclient -s MAIN --eval "(kill-emacs)";
notify-send "Halted Emacs server";
@@ -12,4 +12,8 @@ case "$(printf "new\nstop\nrestart" | dmenu -p "eserver: ")" in
"new")
notify-send "Launching 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