summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeffrey Dileo <jtdileo@gmail.com>2012-03-07 07:47:34 -0500
committerJeffrey Dileo <jtdileo@gmail.com>2012-03-07 07:47:34 -0500
commitc7105a53416866e8315c503546dc5bfe2b9da83f (patch)
treeee55828db0b935442dc046b308e10db6af7baa2b /lib
parent1120f973054836eeb53750f57d69fbec41a340dc (diff)
downloadzsh-c7105a53416866e8315c503546dc5bfe2b9da83f.tar.gz
zsh-c7105a53416866e8315c503546dc5bfe2b9da83f.tar.bz2
zsh-c7105a53416866e8315c503546dc5bfe2b9da83f.zip
Disabled title function for emacs term mode
Diffstat (limited to 'lib')
-rw-r--r--lib/termsupport.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index 221989502..e26fef6d3 100644
--- a/lib/termsupport.zsh
+++ b/lib/termsupport.zsh
@@ -3,7 +3,9 @@
#Fully support screen, iterm, and probably most modern xterm and rxvt
#Limited support for Apple Terminal (Terminal can't set window or tab separately)
function title {
- [ "$DISABLE_AUTO_TITLE" != "true" ] || return
+ if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then
+ return
+ fi
if [[ "$TERM" == screen* ]]; then
print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then