On Sat, Nov 19, 2022 at 9:09 AM Yoichi Nakayama via GitGitGadget <gitgitgadget@xxxxxxxxx> wrote: > It works with GIT_EDITOR="emacsclient" or GIT_EDITOR="emacsclient -t" > > Signed-off-by: Yoichi Nakayama <yoichi.nakayama@xxxxxxxxx> > --- > diff --git a/contrib/git-jump/git-jump b/contrib/git-jump/git-jump > @@ -26,6 +26,11 @@ open_editor() { > +if git var GIT_EDITOR | grep ^emacsclient >/dev/null; then > + type "mode_$mode" >/dev/null 2>&1 || { usage >&2; exit 1; } > + open_emacsclient "$mode" "$@" > + exit 0 > +fi Would it make sense to expand this to support the VISUAL and EDITOR environment variables too? For instance, since I want to use Emacs for all my editing needs, I have EDITOR set to reference emacsclient. So, if GIT_EDITOR is unset, then check VISUAL, and if that is unset, check EDITOR. Also, on macOS, I need to set EDITOR (or GIT_EDITOR or VISUAL) to the full path of emacsclient, but the regex used here is too tight to recognize that. Perhaps loosening it to just 'emacsclient' would be a good idea (as it seems unlikely to falsely match any other editor)?