summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--zsh/.config/zsh/.zshrc5
1 files changed, 4 insertions, 1 deletions
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 () {