dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 8a310f5f7766d0d65064736fb0f2a066d03ab4ac
parent 2a0b632827a1ae3a3b3377c58518c7ca78a6af88
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Wed,  3 Feb 2016 14:49:14 -0800

run emacs as daemon and attach with client

Diffstat:
M.zshrc | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/.zshrc b/.zshrc @@ -57,8 +57,17 @@ function tnew { tmux new-session -As `basename $PWD` } # Start tmux on shell login #[[ -z "$TMUX" ]] && exec tmux +# Start emacs daemon if it is not running, then attach client +function e () { + if [[ $(pgrep emacs --daemon) ]]; then + echo starting emacs daemon + emacs --daemon > ~/.emacs-daemon.log 2>&1 + fi + emacsclient -t +} + alias svim='sudoedit' -alias e='emacs -nw' +#alias e='emacs -nw' #alias v='vim' alias v='nvim' alias f='fg'