summaryrefslogtreecommitdiff
path: root/zsh/rc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/rc')
-rw-r--r--zsh/rc6
1 files changed, 5 insertions, 1 deletions
diff --git a/zsh/rc b/zsh/rc
index b637184..0a19413 100644
--- a/zsh/rc
+++ b/zsh/rc
@@ -52,7 +52,11 @@ alias spm='swift package'
bindkey -e
-export EDITOR=vim
+if [[ -S ${XDG_RUNTIME_DIR}/emacs/server ]]; then
+ export EDITOR='emacsclient -t'
+else
+ export EDITOR=vim
+fi
export LESSHISTFILE=${XDG_CACHE_HOME}/less_history
export PYTHONSTARTUP=$(dotfiles_root)/python/rc
export SQLITE_HISTORY=${XDG_CACHE_HOME}/sqlite_history