Change to editor variable

This commit is contained in:
RealStickman 2020-11-10 15:59:00 +01:00
parent 61b5c8c8db
commit 69211ab83c

View File

@ -86,9 +86,10 @@ ext x?html?, has w3m, terminal = w3m "$@"
#-------------------------------------------
# Define the "editor" for text files as first action
#mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@"
mime ^text, label editor = /usr/bin/emacs --no-window-system -- "$@"
#mime ^text, label editor = /usr/bin/emacs --no-window-system -- "$@"
mime ^text, label editor = $EDITOR -- "$@"
mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = /usr/bin/emacs --no-window-system -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext 1 = man "$1"