diff options
| -rwxr-xr-x | bin/.local/bin/scripts/emacs-launcher | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/.local/bin/scripts/emacs-launcher b/bin/.local/bin/scripts/emacs-launcher index cd5b624..02fa157 100755 --- a/bin/.local/bin/scripts/emacs-launcher +++ b/bin/.local/bin/scripts/emacs-launcher @@ -2,7 +2,7 @@ run_command () { - emacsclient -c -e $1 >/dev/null 2>&1 & + emacsclient -c -F "((name . \"$2\"))" -e "$1" >/dev/null 2>&1 & } options=("calendar" "agenda" "music" "rss" "scratch" "mail") @@ -16,28 +16,28 @@ fi case $choice in "calendar") command="(bard/open-calendar)" - run_command $command + run_command $command "calendar" ;; "agenda") command="(bard/default-agenda)" - run_command $command + run_command $command "agenda" ;; "music") command="(emms)" - run_command $command + run_command $command "music" ;; "rss") command="(elfeed)" - run_command $command + run_command $command "rss" ;; "mail") command="(notmuch)" - run_command $command + run_command $command "mail" ;; "scratch") - scratch.sh + scratch.sh "scratch" ;; - "*") + *) exit 1; ;; esac |
