~ made emacsclient calls with no alternate editors in eselect (confidence in server) ~ made notmuch option on eselect actually work properly ~ adjusted icons in status scripts
20 lines
728 B
Bash
Executable File
20 lines
728 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
|
|
"restart")
|
|
systemctl --user restart emacs;
|
|
notify-send "Restarted Emacs server";;
|
|
"stop")
|
|
systemctl --user stop emacs;
|
|
notify-send "Halted Emacs server";;
|
|
"new")
|
|
notify-send "Launching Emacs";
|
|
emacsclient -c;;
|
|
"eshell")
|
|
notify-send "Launching Eshell";
|
|
emacsclient -c --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';;
|
|
"mail")
|
|
notify-send "Launching notmuch";
|
|
emacsclient -c --eval '(let ((b (or (get-buffer "*notmuch-hello*") (progn (notmuch) (get-buffer "*notmuch-hello*"))))) (switch-to-buffer b))';;
|
|
esac
|