(Scripts)+eselect option for notmuch mail
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case "$(printf "new\nstop\nrestart\neshell" | dmenu -p "eserver: ")" in
|
case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
|
||||||
"restart")
|
"restart")
|
||||||
systemctl --user restart emacs;
|
systemctl --user restart emacs;
|
||||||
notify-send "Restarted Emacs server";;
|
notify-send "Restarted Emacs server";;
|
||||||
@@ -13,4 +13,7 @@ case "$(printf "new\nstop\nrestart\neshell" | dmenu -p "eserver: ")" in
|
|||||||
"eshell")
|
"eshell")
|
||||||
notify-send "Launching Eshell";
|
notify-send "Launching Eshell";
|
||||||
emacsclient -c --alternate-editor=emacs --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';;
|
emacsclient -c --alternate-editor=emacs --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';;
|
||||||
|
"mail")
|
||||||
|
notify-send "Launching notmuch";
|
||||||
|
emacsclient -c --alternate-editor=emacs --eval '(let ((b (or (get-buffer "*notmuch-hello*") (notmuch)))) (switch-to-buffer b))';;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user