diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-11 01:23:24 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-11 01:23:24 +0100 |
commit | f5ea98f47409a7bcf8a57114ef992b2be1454afb (patch) | |
tree | d9951966554266bae477cc08ff130b5468ead32a /Scripts/.local | |
parent | c509e335866ec8bb52d00ec65404a102908060f8 (diff) | |
download | dotfiles-f5ea98f47409a7bcf8a57114ef992b2be1454afb.tar.gz dotfiles-f5ea98f47409a7bcf8a57114ef992b2be1454afb.tar.bz2 dotfiles-f5ea98f47409a7bcf8a57114ef992b2be1454afb.zip |
(Scripts)~better eselect
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-x | Scripts/.local/scripts/eselect | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect index 7bd4016..8f811b7 100755 --- a/Scripts/.local/scripts/eselect +++ b/Scripts/.local/scripts/eselect @@ -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 |