From 9c1d547462f007cba3ed71a3b4f5ad6efceb0e44 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 24 Dec 2018 18:33:44 +0000 Subject: zsh: Don't set emacsclient as EDITOR unless present --- zsh/.config/zsh/.zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 125afc2..f466bb3 100644 --- a/zsh/.config/zsh/.zshrc +++ b/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 () { -- cgit 1.4.1