X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/74e49a250d6ef2039f60a9a4d9e2408b2856ead6..b1f23788e1aad3b3e82c8a887a5208980cd48ef0:/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