Sh.exe ": emacs: command not found (Git bash Windows)

I use Git Bash on Windows 7 and have a problem with setting up emacs as the default text editor - I've tried git config --global core.editor emacs, then git config --global core.editor "'C:/emacs-23.3/bin/runemacs.exe'", git config --global core.editor emacsclientwbut to no avail, Every time I entered something like "emacs README.txt" in Bash, below error shows:

sh.exe ": emacs: command not found

I have been doing this for the longest time, choosing to just open emacs separately and open the linked file, but this time I really want to configure everything correctly so that I can save time and just call emacs from Git Bash. Does anyone know what I can do? Thanks in advance for your help.

+5
source share
2

, emacs bin PATH, , emacs emacsclient. unix, emacs, EDITOR emacsclient. emacsclient, emacsclientw, , , , . git, git config --global core.editor emacsclient GIT_EDITOR = emacsclient .

:

PATH=c:\emacs-23.3\bin;%PATH%
EDITOR=emacsclient
export PATH EDITOR

Windows.

+4
+1

All Articles