git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Zile as git core editor?
@ 2013-04-26  7:39 Thorsten Jolitz
  2013-04-26  8:28 ` Tay Ray Chuan
  0 siblings, 1 reply; 7+ messages in thread
From: Thorsten Jolitz @ 2013-04-26  7:39 UTC (permalink / raw)
  To: git


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zile as git core editor?
  2013-04-26  7:39 Zile as git core editor? Thorsten Jolitz
@ 2013-04-26  8:28 ` Tay Ray Chuan
  2013-04-26  8:37   ` Thorsten Jolitz
  0 siblings, 1 reply; 7+ messages in thread
From: Tay Ray Chuan @ 2013-04-26  8:28 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: Git Mailing List

Hi,

Is the GIT_EDITOR or EDITOR environment variable set? They may be
overriding the core.editor setting.

--
Cheers,
Ray Chuan

On Fri, Apr 26, 2013 at 3:39 PM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
>
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zile as git core editor?
  2013-04-26  8:28 ` Tay Ray Chuan
@ 2013-04-26  8:37   ` Thorsten Jolitz
  2013-04-26  8:57     ` Matthieu Moy
  0 siblings, 1 reply; 7+ messages in thread
From: Thorsten Jolitz @ 2013-04-26  8:37 UTC (permalink / raw)
  To: git

Tay Ray Chuan <rctay89@gmail.com> writes:

Hi,

> Is the GIT_EDITOR or 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. 

> --
> Cheers,
> Ray Chuan
>
> On Fri, Apr 26, 2013 at 3:39 PM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
>>
>> 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 majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zile as git core editor?
  2013-04-26  8:37   ` Thorsten Jolitz
@ 2013-04-26  8:57     ` Matthieu Moy
  2013-04-26 16:08       ` Thorsten Jolitz
  0 siblings, 1 reply; 7+ messages in thread
From: Matthieu Moy @ 2013-04-26  8:57 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: git

Thorsten Jolitz <tjolitz@gmail.com> writes:

> 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.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zile as git core editor?
  2013-04-26  8:57     ` Matthieu Moy
@ 2013-04-26 16:08       ` Thorsten Jolitz
  2013-04-26 17:00         ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Thorsten Jolitz @ 2013-04-26 16:08 UTC (permalink / raw)
  To: git

Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> 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.


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).

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zile as git core editor?
  2013-04-26 16:08       ` Thorsten Jolitz
@ 2013-04-26 17:00         ` Junio C Hamano
  2013-04-26 18:33           ` Thorsten Jolitz
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2013-04-26 17:00 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: git

Thorsten Jolitz <tjolitz@gmail.com> writes:

>  ... 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zile as git core editor?
  2013-04-26 17:00         ` Junio C Hamano
@ 2013-04-26 18:33           ` Thorsten Jolitz
  0 siblings, 0 replies; 7+ messages in thread
From: Thorsten Jolitz @ 2013-04-26 18:33 UTC (permalink / raw)
  To: git

Junio C Hamano <gitster@pobox.com> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>>  ... 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.

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. 

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-26 18:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26  7:39 Zile as git core editor? Thorsten Jolitz
2013-04-26  8:28 ` Tay Ray Chuan
2013-04-26  8:37   ` Thorsten Jolitz
2013-04-26  8:57     ` Matthieu Moy
2013-04-26 16:08       ` Thorsten Jolitz
2013-04-26 17:00         ` Junio C Hamano
2013-04-26 18:33           ` Thorsten Jolitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).