@ctietze Does git prefer the EDITOR or VISUAL envvars over the on-disk setting? If so, you might be able to set up emacs (or the eshell it spawns) to expose one of those envvars set to an appropriate "emacs" value, so they override the on-disk setting that would otherwise apply ...
Conversation
Notices
-
Embed this notice
Jonathan Matthews (jonathanmatthews@fosstodon.org)'s status on Friday, 01-Nov-2024 17:49:15 JST Jonathan Matthews -
Embed this notice
Luke T. Shumaker (lukeshu@fosstodon.org)'s status on Friday, 01-Nov-2024 17:49:15 JST Luke T. Shumaker (highest precedence)
$GIT_EDITOR
$(git config core.editor)
$VISUAL
$EDITOR
compile-time DEFAULT_EDITOR ("vi" by default, but your distro might change that)
(lowest precedence)reference: `man git-var`
-
Embed this notice
Christian Tietze (ctietze@mastodon.social)'s status on Friday, 01-Nov-2024 17:49:16 JST Christian Tietze Is there a way to override the ~/.gitconfig editor variable so that *only from within Emacs* (eshell) it uses Emacs?
From the terminal outside Emacs, I want the default to be `micro`.
-
Embed this notice