summaryrefslogtreecommitdiff
path: root/bin/emacsclient
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-11-14 09:56:00 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-11-14 10:21:54 -0700
commitf8cac7b64fe02ec7f41978c4fb4bf283ef13bd89 (patch)
treed17894a1d8bf6a30d6ff71fb4dd8242bfc6095f6 /bin/emacsclient
parent00e75e86f260921dab60b1117bbc7e080420e9f0 (diff)
downloaddotfiles-f8cac7b64fe02ec7f41978c4fb4bf283ef13bd89.tar.gz
emacsclient wrapper: check other commands we want to use are on PATH
Diffstat (limited to 'bin/emacsclient')
-rwxr-xr-xbin/emacsclient6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/emacsclient b/bin/emacsclient
index d7a0d9b2..97d8242d 100755
--- a/bin/emacsclient
+++ b/bin/emacsclient
@@ -105,8 +105,10 @@ installed_emacsclient=$(PATH=$(echo "$PATH" \
| sed -e "s#$HOME/src/dotfiles/bin:##") \
command -v emacsclient)
-command -v ss >/dev/null \
- || exec -a emacsclient "$installed_emacsclient" -a "" "$@"
+for external in flock inotifywait perl pwdx ss; do
+ command -v $external >/dev/null \
+ || exec -a emacsclient "$installed_emacsclient" -a "" "$@"
+done
# We set and export XDG_RUNTIME_DIR such that Emacs doesn't choose
# "/tmp/emacs$(id -u)" as the socket dir.