Fixes EDITOR env variable configuration
This commit is contained in:
parent
857bb85e66
commit
2867dfb9f2
1 changed files with 2 additions and 2 deletions
4
emacs/index.sh
Normal file → Executable file
4
emacs/index.sh
Normal file → Executable file
|
|
@ -11,7 +11,7 @@ fi
|
||||||
if [ -n "$INSIDE_EMACS" ]; then
|
if [ -n "$INSIDE_EMACS" ]; then
|
||||||
export EDITOR="edit-file-in-emacs.sh"
|
export EDITOR="edit-file-in-emacs.sh"
|
||||||
else
|
else
|
||||||
export EDITOR=$(which vim)
|
export EDITOR="command nvim"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -19,7 +19,7 @@ vim () {
|
||||||
if [ -n "$INSIDE_EMACS" ]; then
|
if [ -n "$INSIDE_EMACS" ]; then
|
||||||
emacsclient -e "(find-file-other-window \"$1\")"
|
emacsclient -e "(find-file-other-window \"$1\")"
|
||||||
else
|
else
|
||||||
eval "$EDITOR \"$1\""
|
nvim "$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue