change editor when rebase collapse or histedit is called

Steve - Gadget Barnes gadgetsteve at hotmail.com
Sun Sep 18 14:08:47 UTC 2016



On 18/09/2016 14:18, Uwe Brauer wrote:
> Hi
> 
> When I call for example 
> hg rebase --keep -d 2 -s 3 --collapse
> 
> The zile editor (lightweight and nice) pops up. But recently I prefer to
> use GNU emacs/emacsclient. I googled around I cannot find where to
> configure the editor.
> 
> Any ideas?
> 
> Thanks
> 
> Uwe Brauer 
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
> 

If you use:

hg config --edit

You will get your current editor with your user configuration file, (add
--global for the global one).

Under the [ui] section add the path to your preferred editor in the form

editor = path/to/editor

If your editor is on your default path you may not need to have the full
path.
-- 
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.



More information about the Mercurial mailing list