From 5630a2b6d003b24dc19ba84a168dfc07e0f6a168 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 23 Jun 2019 21:22:34 -0700 Subject: [PATCH] Set alternate editor to less --- dotfiles/lib/shellenv/emacs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/lib/shellenv/emacs.sh b/dotfiles/lib/shellenv/emacs.sh index c2402801..57897159 100644 --- a/dotfiles/lib/shellenv/emacs.sh +++ b/dotfiles/lib/shellenv/emacs.sh @@ -130,7 +130,11 @@ function emacs_pager { # Make emacs the default editor. 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 GIT_EDITOR="$EDITOR"