editor/emacs: refactor aliases.zsh

This commit is contained in:
Henrik Lissner 2016-12-24 14:38:54 -05:00
parent c37c0c529b
commit 9140387a74

View file

@ -1,6 +1,6 @@
if is-callable emacs; then
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
alias emacs='emacs -nw' alias emacs='emacs -nw'
e() { # Emacs version of v e() { # Emacs version of v
if pgrep Emacs 2>&1 >/dev/null; then if pgrep Emacs 2>&1 >/dev/null; then
emacsclient -n $@ emacsclient -n $@
@ -13,4 +13,3 @@ if is-callable emacs; then
fi fi
ediff() { e --eval "(ediff-files \"$1\" \"$2\")"; } ediff() { e --eval "(ediff-files \"$1\" \"$2\")"; }
fi