git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Zile as git core editor?

From
TJThorsten Jolitz <tjolitz@gmail.com>
Date
Apr 26, 2013, 16:08 UTC
Message-ID
<87ppxh6zru.fsf@gmail.com>
In-Reply-To
<vpqppxhfz3i.fsf@grenoble-inp.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 16 quoted lines
> 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
Previous: Matthieu MoyNext: Junio C Hamano
Message 5 of 7 in “Zile as git core editor?”
  1. Thorsten JolitzApr 26, 2013
  2. Tay Ray ChuanApr 26, 2013
  3. Thorsten JolitzApr 26, 2013
  4. Matthieu MoyApr 26, 2013
  5. Thorsten JolitzApr 26, 2013
  6. Junio C HamanoApr 26, 2013
  7. Thorsten JolitzApr 26, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.