zsh: Don't set emacsclient as EDITOR unless present
1 file changed, 4 insertions(+), 1 deletion(-)
jump to
M zsh/.config/zsh/.zshrc → zsh/.config/zsh/.zshrc
@@ -15,7 +15,10 @@ setopt inc_append_history_time WORDCHARS=${${WORDCHARS//[-.=]}//[\/]} -export EDITOR=emacsclient +if (( ${+commands[emacsclient]} )) +then + export EDITOR=emacsclient +fi alias ec=emacsclient alias open-project=projectile _emacs_function () {