(Scripts)~better eselect
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
|
||||
"restart")
|
||||
@@ -9,11 +9,11 @@ case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
|
||||
notify-send "eselect: Halted Emacs server";;
|
||||
"new")
|
||||
notify-send "eselect: Launching Emacs";
|
||||
emacsclient -c -a emacs;;
|
||||
emacsclient -c -a "emacs";;
|
||||
"eshell")
|
||||
notify-send "eselect: Launching Eshell";
|
||||
emacsclient -c -a emacs --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';;
|
||||
emacsclient -c -a "emacs" --eval '(progn (eshell) (delete-other-windows))';;
|
||||
"mail")
|
||||
notify-send "eselect: Launching notmuch";
|
||||
emacsclient -c -a emacs --eval '(let ((b (or (get-buffer "*notmuch-hello*") (progn (notmuch) (get-buffer "*notmuch-hello*"))))) (switch-to-buffer b))';;
|
||||
emacsclient -c -a "emacs" --eval '(progn (notmuch) (delete-other-windows))';;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user