dot/zshrc: Fix Emacs integration properly.
[profile] / dot / zshrc
index 3466d6c..9565fd6 100644 (file)
--- a/dot/zshrc
+++ b/dot/zshrc
@@ -3,7 +3,6 @@
 ### Zsh session things.
 
 __mdw_shell=zsh
-case ${INSIDE_EMACS+t},$TERM in t,dumb) unsetopt zle ;; esac
 
 ###--------------------------------------------------------------------------
 ### History settings.
@@ -63,7 +62,8 @@ fi
 ###--------------------------------------------------------------------------
 ### Line editing.
 
-case $TERM in dumb) unsetopt zle ;; esac
+case ${INSIDE_EMACS+t},$TERM in t,dumb) unsetopt zle ;; esac
+case $TERM in dumb) unset zle_bracketed_paste ;; esac
 
 bindkey -e