helm/editor/emacs/aliases.zsh

16 lines
353 B
Bash
Raw Normal View History

2016-12-24 11:38:54 -08:00
if [[ "$OSTYPE" == darwin* ]]; then
alias emacs='emacs -nw'
2016-11-15 06:51:25 -08:00
2016-12-24 11:38:54 -08:00
e() { # Emacs version of v
if pgrep Emacs 2>&1 >/dev/null; then
emacsclient -n $@
else
/Applications/Emacs.app/Contents/MacOS/Emacs $@ &
fi
}
else
alias e='emacsclient -n'
2016-11-15 06:51:25 -08:00
fi
2016-12-24 11:38:54 -08:00
ediff() { e --eval "(ediff-files \"$1\" \"$2\")"; }