X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/6b440e3f1a67b73bb35b1469f18065d18aa5402e..5c1771876cc5301c2d0c7e9e28c69a01682d2429:/bin/mdw-editor diff --git a/bin/mdw-editor b/bin/mdw-editor index aa52fd5..c162da3 100755 --- a/bin/mdw-editor +++ b/bin/mdw-editor @@ -2,6 +2,9 @@ set -e editor=${MDW_EDITOR-ed} +case ${TMP+t},${TMPDIR+t} in + t,) TMPDIR=$TMP; export TMPDIR ;; +esac emacsclient=$( emacsclient --eval '(>= emacs-major-version 23)' 2>/dev/null || :) [ -t 0 -a -t 1 ] || TERM=dumb