dot/zshrc: Fix Emacs integration properly.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 9 May 2023 11:35:39 +0000 (12:35 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 9 May 2023 11:35:39 +0000 (12:35 +0100)
commita68427dd89a3d69d423705a7c83de151bf27a497
treeced6c32f5bb3f7109fea27bb7cf295bea6f4f83c
parentd29d3810fbe3876aa581ed29080fef419e5b7ba9
dot/zshrc: Fix Emacs integration properly.

This was a mess.  I'd had a hack to inhibit line-editing in `dumb'
terminals for ages, but grew an extra one as an overreaction against
TRAMP's allergy to bracketted-paste.  Rationalize all of this.

  * Move the logic to inhibit line-editing into the right configuration
    section.

  * Only inhibit line-editing in `dumb' terminals that aren't running in
    Emacs.

  * Inhibit bracketted-paste in `dumb' terminals, but not otherwise.

The result is that I can still use line editing in `dumb' terminals, but
Emacs -- and particularly TRAMP -- work properly.
dot/zshrc