set nvim as default editor
This commit is contained in:
parent
00d5db99d8
commit
0eaee2bc1a
|
@ -18,7 +18,9 @@ fi
|
|||
|
||||
# Set preferred editor.
|
||||
# Add Defaults env_keep += "SSH_CONNECTION" to /etc/sudoers.d/ssh_vars
|
||||
if command -v emacsclient > /dev/null; then
|
||||
if type nvim >& -; then
|
||||
VISUAL="$(command -v nvim)"
|
||||
elif command -v emacsclient > /dev/null; then
|
||||
export EMACS_SOCKET_NAME="${HOME}/.emacs.d/server/server"
|
||||
if pgrep -f "emacs --daemon" > /dev/null; then
|
||||
VISUAL="$(command -v emacsclient) -c"
|
||||
|
|
Loading…
Reference in New Issue
Block a user