X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/07965a3978b656cabc38cbac52fde1ed17dd8332..782c3e35937e7438daf6073cddafdf21f4fc36fd:/bin/mdw-editor diff --git a/bin/mdw-editor b/bin/mdw-editor index 96387e8..aa52fd5 100755 --- a/bin/mdw-editor +++ b/bin/mdw-editor @@ -6,7 +6,10 @@ emacsclient=$( emacsclient --eval '(>= emacs-major-version 23)' 2>/dev/null || :) [ -t 0 -a -t 1 ] || TERM=dumb case "$EDITOR,$VISUAL,$TERM" in - mdw-editor,mdw-editor,dumb) editor=emacsclient emacsclient=nil;; + mdw-editor,mdw-editor,dumb | \ + mdw-editor,mdw-editor,emacs | \ + mdw-editor,mdw-editor,eterm*) + editor=emacsclient emacsclient=nil;; mdw-editor,mdw-editor,*);; mdw-editor,*,*) editor=$VISUAL;; *,*,*) editor=$EDITOR;;