summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-01-01 16:34:07 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-01-01 16:34:07 -0500
commit6e8f41fe3b5902194641eee0dacd3816f0765ec8 (patch)
tree92a89a262f0e866759b44c17c2b6c7d4f8cd01e1
parenta12f3189bcf6d2cf277acfa7824961b158bd57e6 (diff)
bash emacs integration: if DISPLAY=nil, unset it
-rw-r--r--.config/bash/rc.d/emacs.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/bash/rc.d/emacs.sh b/.config/bash/rc.d/emacs.sh
index 12fa9ad..c254ec7 100644
--- a/.config/bash/rc.d/emacs.sh
+++ b/.config/bash/rc.d/emacs.sh
@@ -85,6 +85,7 @@ if [[ $TERM == eterm* ]]; then
# Set the shell's X11 display (emacs -> shell)
_emacs_set_shell_DISPLAY() {
export DISPLAY=$(_emacs_unquote "$(_emacs_run "(cdr (assoc 'display (frame-parameters)))")")
+ [[ $DISPLAY != nil ]] || unset DISPLAY
}
## Do those things #####################################################