ec: tidy
This commit is contained in:
9
bin/ec
9
bin/ec
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
TEXT_FLAGS='-a "" -t'
|
echo "Display: $DISPLAY"
|
||||||
GUI_FLAGS='-n -a "" -c'
|
|
||||||
if [ -z "$DISPLAY" ]; then
|
if [ -z "$DISPLAY" ]; then
|
||||||
emacsclient $TEXT_FLAGS "$@"
|
# echo "Searching for text Emacs"
|
||||||
|
emacsclient -a "" -t "$@"
|
||||||
else
|
else
|
||||||
emacsclient $GUI_FLAGS "$@"
|
# echo "Searching for GUI Emacs"
|
||||||
|
emacsclient -n -a "" -c "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user