helm/config/emacs/aliases.zsh

18 lines
343 B
Bash
Raw Normal View History

2019-08-06 10:56:54 -07:00
#!/usr/bin/env zsh
if [[ $OSTYPE == darwin* ]]; then
alias emacs='emacs -nw'
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'
fi
ediff() { e --eval "(ediff-files \"$1\" \"$2\")"; }