나는 source에서 빌드 한 Git 버전 1.7.3.2를 실행 중이며, zsh는 쉘이고, emacs는 내 편집기이다.
최근에 나는 다음을보기 시작했다.
/usr/local/Cellar/git/1.7.3.2/libexec/git-core/git-sh-setup: line 106: emacs: command not found
편집기를 실행할 수 없습니다.
내 zshrc는 다음과 같아서 Cocoa 빌드와 함께 제공되는 콘솔 바이너리를 사용할 수 있습니다.
EMACS_HOME="/Applications/Emacs.app/Contents/MacOS"
function e() { PATH=$EMACS_HOME/bin:$PATH $EMACS_HOME/Emacs -nw $@ }
function ec() { PATH=$EMACS_HOME/bin:$PATH emacsclient -t $@ }
function es() { e --daemon=$1 && ec -s $1 }
function el() { ps ax|grep Emacs }
function ek() { $EMACS_HOME/bin/emacsclient -e '(kill-emacs)' -s $1 }
function ecompile() {
e -eval "(setq load-path (cons (expand-file-name \".\") load-path))" \
-batch -f batch-byte-compile $@
}
alias emacs=e
alias emacsclient=ec
그리고 나는 또한 가지고있다.
export EDITOR="emacs"
그리고 추가를 시도했습니다.
export GIT_EDITOR="emacs"
(그리고 "e"로 바꿔 치기)
하지만 내가 시도 할 때마다 커밋이나 대화식 rebase 등을 할 필요가있을 때마다 이맥을 열 수 없습니다.
아주 최근의 Emacs 24 빌드. 그렇습니다. 전체 경로가 필요할 수도 있습니다 ...
—
mwilliams
which emacs? 또는 이맥스의 전체 경로를 입력 할 수EDITOR있습니까?