use emacs as editor in edit screen

This commit is contained in:
gutmet 2021-03-14 15:48:53 +01:00
parent 2332e87b41
commit 8a0dd8b44f

View File

@ -2,4 +2,4 @@
tmpfile=$(mktemp /tmp/st-edit.XXXXXX) tmpfile=$(mktemp /tmp/st-edit.XXXXXX)
trap 'rm "$tmpfile"' 0 1 15 trap 'rm "$tmpfile"' 0 1 15
cat > "$tmpfile" cat > "$tmpfile"
st -e "$EDITOR" "$tmpfile" emacs "$tmpfile"