Fix EDITOR environment variable issue for emacs

Have programs using the $EDITOR environment variable use emacsclient if
a daemon is running but otherwise fallback to plain emacs.

See: http://www.emacswiki.org/emacs/EmacsAsDaemon

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
This commit is contained in:
Collin J. Doering 2014-10-23 03:26:23 -04:00 committed by Collin J. Doering
부모 7c8f081678
커밋 6e6c574abc
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -66,4 +66,7 @@ fi
#eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
# Default editor
export EDITOR="emacs -nw"
export ALTERNATE_EDITOR=""
export EDITOR="emacsclient -t" # $EDITOR should open in terminal
export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI with non-daemon as alternate

4
.zshrc
파일 보기

@ -99,4 +99,6 @@ fi
#eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
# Default editor
export EDITOR="emacs -nw"
export ALTERNATE_EDITOR=""
export EDITOR="emacsclient -t" # $EDITOR should open in terminal
export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI with non-daemon as alternate