From 218f8e49d1699ba585ffd4cc318572f324c7d3de Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 25 Jul 2021 15:36:56 +0100 Subject: (Scripts)+eselect option for notmuch mail --- Scripts/.local/scripts/eselect | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect index d086b7e..cfe58c9 100755 --- a/Scripts/.local/scripts/eselect +++ b/Scripts/.local/scripts/eselect @@ -1,6 +1,6 @@ #!/bin/sh -case "$(printf "new\nstop\nrestart\neshell" | dmenu -p "eserver: ")" in +case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in "restart") systemctl --user restart emacs; notify-send "Restarted Emacs server";; @@ -13,4 +13,7 @@ case "$(printf "new\nstop\nrestart\neshell" | dmenu -p "eserver: ")" in "eshell") notify-send "Launching Eshell"; 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 -- cgit v1.2.3-13-gbd6f