From eac836b22ab399d08392ce816584a454fe430c3c Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Wed, 3 Dec 2014 16:42:52 -0700 Subject: [PATCH] This is really happening, isn't it? --- zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 39b0163..1b25279 100644 --- a/zshrc +++ b/zshrc @@ -6,7 +6,7 @@ alias tmux="tmux -2" alias ta="tmux attach -d" alias dustinswan="mosh dustinswan@dustinswan.org" alias kill_offlineimap="ps aux | grep offlineimap | awk '{ print $2 }' | xargs kill -9" -export EDITOR=vim +export EDITOR="emacsclient -ct" export TERM="screen-256color" export MOSH_TITLE_NOPREFIX=1 @@ -57,3 +57,7 @@ HISTFILE=~/.history ### Added by the Heroku Toolbelt export PATH="/usr/local/heroku/bin:$PATH" + +# start up emacs daemon if not running +pgrep emacs &> /dev/null || emacs --daemon +alias emacs="emacsclient -ct"