(Scripts)~if no emacs server then use just general emacs
This commit is contained in:
@@ -9,11 +9,11 @@ case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
|
|||||||
notify-send "eselect: Halted Emacs server";;
|
notify-send "eselect: Halted Emacs server";;
|
||||||
"new")
|
"new")
|
||||||
notify-send "eselect: Launching Emacs";
|
notify-send "eselect: Launching Emacs";
|
||||||
emacsclient -c;;
|
emacsclient -c -a emacs;;
|
||||||
"eshell")
|
"eshell")
|
||||||
notify-send "eselect: Launching Eshell";
|
notify-send "eselect: Launching Eshell";
|
||||||
emacsclient -c --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';;
|
emacsclient -c -a emacs --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';;
|
||||||
"mail")
|
"mail")
|
||||||
notify-send "eselect: Launching notmuch";
|
notify-send "eselect: Launching notmuch";
|
||||||
emacsclient -c --eval '(let ((b (or (get-buffer "*notmuch-hello*") (progn (notmuch) (get-buffer "*notmuch-hello*"))))) (switch-to-buffer b))';;
|
emacsclient -c -a emacs --eval '(let ((b (or (get-buffer "*notmuch-hello*") (progn (notmuch) (get-buffer "*notmuch-hello*"))))) (switch-to-buffer b))';;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user