all repos — nixfiles @ 9c1d547462f007cba3ed71a3b4f5ad6efceb0e44

System and user configuration, managed by nix and home-manager

zsh: Don't set emacsclient as EDITOR unless present

Alan Pearce
commit

9c1d547462f007cba3ed71a3b4f5ad6efceb0e44

parent

d9f6ea9c62a6b72d977c425777234ff07566939b

1 file changed, 4 insertions(+), 1 deletion(-)

jump to
M zsh/.config/zsh/.zshrczsh/.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 () {