zsh: Don't set emacsclient as EDITOR unless present
Alan Pearce alan@alanpearce.eu
Mon, 24 Dec 2018 18:33:44 +0000
1 files changed, 4 insertions(+), 1 deletions(-)
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 () {