From 046a31152373c8822fe11f2301572539b87f217d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 28 Jan 2011 19:25:50 +0100 Subject: Only show syntax if we're not running in emacs --- zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index a706643..fbd0458 100644 --- a/zshrc +++ b/zshrc @@ -80,4 +80,9 @@ bindkey "\e0F" end-of-line bindkey "\e[H" beginning-of-line bindkey "\e[F" end-of-line -source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh +if [ -z $EMACS ]; then + source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh + + ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue' + ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue' +fi -- cgit v1.2.3-54-g00ecf