summaryrefslogtreecommitdiff
path: root/.config/bash
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-30 22:59:53 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-30 22:59:53 -0400
commitb2a41f953efda8e90dcf5fc0da1910b9df5cdb9e (patch)
tree1ccc29bd36219de77a669751b07d4069cbf495be /.config/bash
parentd48ee06cf933bf0f984b30db3fc900d2b6168a4e (diff)
clean up emacs config
Diffstat (limited to '.config/bash')
-rw-r--r--.config/bash/rc.d/emacs.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/bash/rc.d/emacs.sh b/.config/bash/rc.d/emacs.sh
index 165d71e..12fa9ad 100644
--- a/.config/bash/rc.d/emacs.sh
+++ b/.config/bash/rc.d/emacs.sh
@@ -10,7 +10,7 @@ if [[ $TERM == eterm* ]]; then
# _emacs_run LISP
_emacs_run() {
- emacsclient -e "$*" 2>/dev/null
+ emacsclient -a false -e "$*" 2>/dev/null
}
# _emacs_quote UNQUOTED_STRING
_emacs_quote() {
@@ -94,5 +94,7 @@ if [[ $TERM == eterm* ]]; then
_emacs_set_remote_dir
_emacs_set_shell_DISPLAY
}
- PROMPT_COMMAND=_emacs_PROMPT_COMMAND
+ if _emacs_run '()' >/dev/null; then
+ PROMPT_COMMAND=_emacs_PROMPT_COMMAND
+ fi
fi