Set alternate editor to less

This commit is contained in:
Ivan Malison 2019-06-23 21:22:34 -07:00
parent afe34646cd
commit 5630a2b6d0
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -130,7 +130,11 @@ function emacs_pager {
# Make emacs the default editor. # Make emacs the default editor.
export EDITOR="$HOME/.lib/bin/editor.sh" export EDITOR="$HOME/.lib/bin/editor.sh"
export ALTERNATE_EDITOR="" # XXX: Set alternate editor to less on purpose to avoid having a new emacs
# daemon start. For some reason the client doesn't detect some running emacs
# serves and I'd rather it not try to start a new daemon when I'm already inside
# emacs.
export ALTERNATE_EDITOR="less"
export VISUAL="$EDITOR" export VISUAL="$EDITOR"
export GIT_EDITOR="$EDITOR" export GIT_EDITOR="$EDITOR"