bin: add ect (emacsclient, text)
This commit is contained in:
15
bin/ect
Executable file
15
bin/ect
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
if [ "$PARENT_REPO" == "" ] ; then
|
||||||
|
PARENT_REPO=$(find-parent-repo)
|
||||||
|
if [ "$PARENT_REPO" == "" ] ; then
|
||||||
|
echo "No repo found, using unnamed/common daemon."
|
||||||
|
else
|
||||||
|
REPO_NAME=$(basename $PARENT_REPO)
|
||||||
|
if [ -n "$REPO_NAME" ] ; then
|
||||||
|
echo "Using Emacs daemon $REPO_NAME"
|
||||||
|
SOCKET_ARGS="-s $REPO_NAME"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
emacsclient $SOCKET_ARGS -a "" -t "$@"
|
||||||
Reference in New Issue
Block a user