editor/emacs: refactor aliases.zsh
This commit is contained in:
parent
c37c0c529b
commit
9140387a74
|
@ -1,6 +1,6 @@
|
|||
if is-callable emacs; then
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
alias emacs='emacs -nw'
|
||||
|
||||
e() { # Emacs version of v
|
||||
if pgrep Emacs 2>&1 >/dev/null; then
|
||||
emacsclient -n $@
|
||||
|
@ -8,9 +8,8 @@ if is-callable emacs; then
|
|||
/Applications/Emacs.app/Contents/MacOS/Emacs $@ &
|
||||
fi
|
||||
}
|
||||
else
|
||||
else
|
||||
alias e='emacsclient -n'
|
||||
fi
|
||||
|
||||
ediff() { e --eval "(ediff-files \"$1\" \"$2\")"; }
|
||||
fi
|
||||
|
||||
ediff() { e --eval "(ediff-files \"$1\" \"$2\")"; }
|
||||
|
|
Loading…
Reference in a new issue