diff options
author | William Carroll <wpcarro@gmail.com> | 2017-06-18T01·31-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-06-18T01·31-0400 |
commit | 2867dfb9f2f31248040ed4ecde91aa102ff4a781 (patch) | |
tree | 5b967ac5a7306d25e1af24f1476fcb270c6c60c8 /emacs | |
parent | 857bb85e664bce4621eaee5be2ed6ac880978354 (diff) |
Fixes EDITOR env variable configuration
Diffstat (limited to 'emacs')
-rwxr-xr-x[-rw-r--r--] | emacs/index.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/index.sh b/emacs/index.sh index d8dbe954b2b3..e794c24ae942 100644..100755 --- a/emacs/index.sh +++ b/emacs/index.sh @@ -11,7 +11,7 @@ fi if [ -n "$INSIDE_EMACS" ]; then export EDITOR="edit-file-in-emacs.sh" else - export EDITOR=$(which vim) + export EDITOR="command nvim" fi @@ -19,7 +19,7 @@ vim () { if [ -n "$INSIDE_EMACS" ]; then emacsclient -e "(find-file-other-window \"$1\")" else - eval "$EDITOR \"$1\"" + nvim "$1" fi } |