use emacs as editor in edit screen

master
gutmet 2021-03-14 15:48:53 +01:00
parent 2332e87b41
commit 8a0dd8b44f
1 changed files with 1 additions and 1 deletions

View File

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