helm/editor/emacs/aliases.zsh

16 lines
348 B
Bash
Raw Normal View History

if [[ $(_os) == macos ]]; then
2016-12-24 11:38:54 -08:00
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\")"; }