Zile as git core editor?
Hi List,
after experiencing one crash to many, I'm back to Standard Emacs (instead of Emacsserver/Emacsclient), thus using 'emacs' (instead of emacsclient) as git core editor triggers reading my huge init file and is way to slow.
I would like to use Zile (a small Emacs clone) instead, and although otherwise it works alright on my system, it does not seem to work as git core editor.
Is it possible to use 'git config --global core.editor zile'?
Signature · 2 lines
cheers, Thorsten
Hi,
Is the GIT_EDITOR or EDITOR environment variable set? They may be overriding the core.editor setting.
--
Cheers,
Ray Chuan
Quoted 23 lines · Thorsten Jolitz
Hi List,
after experiencing one crash to many, I'm back to Standard Emacs (instead of Emacsserver/Emacsclient), thus using 'emacs' (instead of emacsclient) as git core editor triggers reading my huge init file and is way to slow.
I would like to use Zile (a small Emacs clone) instead, and although otherwise it works alright on my system, it does not seem to work as git core editor.
Is it possible to use 'git config --global core.editor zile'?
--
cheers,
Thorsten--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Tay Ray Chuan <[email protected]> writes:
Hi,
Quoted 2 lines
Is the
GIT_EDITORor EDITOR environment variable set? They may be overriding the core.editor setting.
Actually, EDITOR is set to Zile, so that should not be the problem:
[tj@hostname ~]$ echo $EDITOR/usr/bin/zile
[tj@hostname ~]$ echo $GIT_EDITOR
[tj@hostname ~]$
BTW - would 'git config --global core.editor zile' or 'git config --global core.editor /usr/bin/zile' the right way to set it (both did not work)? I can start Zile simply with 'zile' on the command line.
Quoted 28 lines
--
Cheers,
Ray ChuanQuoted 23 lines · Thorsten Jolitz
Hi List,
after experiencing one crash to many, I'm back to Standard Emacs (instead of Emacsserver/Emacsclient), thus using 'emacs' (instead of emacsclient) as git core editor triggers reading my huge init file and is way to slow.
I would like to use Zile (a small Emacs clone) instead, and although otherwise it works alright on my system, it does not seem to work as git core editor.
Is it possible to use 'git config --global core.editor zile'?
--
cheers,
Thorsten--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
cheers, Thorsten
Quoted 3 lines · Thorsten Jolitz
BTW - would 'git config --global core.editor zile' or 'git config --global core.editor
/usr/bin/zile' the right way to set it (both did not work)? I can start Zile simply with 'zile' on the command line.
What do you mean by "did not work"? Does the launching fail? Or is another editor launched?
Try:
GIT_TRACE=true git commit -a
to see what's going on.
BTW, you may also try "emacs -nw -Q" instead of zile.
Signature · 2 lines
Matthieu Moy http://www-verimag.imag.fr/~moy/
Quoted 9 lines · Matthieu Moy
Quoted 3 lines · Thorsten Jolitz
BTW - would 'git config --global core.editor zile' or 'git config --global core.editor
/usr/bin/zile' the right way to set it (both did not work)? I can start Zile simply with 'zile' on the command line.What do you mean by "did not work"? Does the launching fail? Or is another editor launched?
Quoted 7 lines
Try:
GIT_TRACE=true git commit -a
to see what's going on.
BTW, you may also try "emacs -nw -Q" instead of zile.
Thanks for the tip, I found out that:
1. on the command-line, zile actually works as core editor, but
2. not from within Emacs (Magit) where I tried it
"emacs -nw -Q" is a nice tip, but I think what I really would like to have it that, when I use GNU Emacs Magit and enter a git command
,-----------------------------
| Run git like this: <command>
`-----------------------------
that calls an editor (e.g. commit --amend), the running Emacs instance is (re)used and a new buffer is opened for editing (instead of starting another Emacs instance).
Signature · 2 lines
cheers, Thorsten
Quoted 10 lines · Thorsten Jolitz
... I think what I really would like to
have it that, when I use GNU Emacs Magit and enter a git command,-----------------------------
| Run git like this: <command>
`-----------------------------that calls an editor (e.g. commit --amend), the running Emacs instance is (re)used and a new buffer is opened for editing (instead of starting another Emacs instance).
Hmph, isn't that what "emacsclient" is for? I have these
(setenv "PAGER" "cat") (setenv "EDITOR" "emacsclient") (server-start)
somewhere in my ~/.emacs to make commands in "M-x compile" behave.
Quoted 13 lines · Junio C Hamano
Quoted 10 lines · Thorsten Jolitz
... I think what I really would like to
have it that, when I use GNU Emacs Magit and enter a git command,-----------------------------
| Run git like this: <command>
`-----------------------------that calls an editor (e.g. commit --amend), the running Emacs instance is (re)used and a new buffer is opened for editing (instead of starting another Emacs instance).
Quoted 7 lines
Hmph, isn't that what "emacsclient" is for? I have these
(setenv "PAGER" "cat") (setenv "EDITOR" "emacsclient") (server-start)somewhere in my ~/.emacs to make commands in "M-x compile" behave.
I was a big fan of emacsclient and used it quite some time - but finally those frequent Emacs crashes caused by it were just unbearable, so I went back to 'normal' use of Emacs.
But maybe you are right - I should run a second Emacs instance as server only used to popup emacsclient buffers on demand, while doing all the serious stuff in a non-server instance of Emacs.
Signature · 2 lines
cheers, Thorsten