Update emacs aliases

This commit is contained in:
Henrik Lissner 2021-02-17 12:54:12 -05:00
parent b3bbb692c1
commit 029259623d

View file

@ -1,4 +1,6 @@
#!/usr/bin/env zsh
alias e='emacsclient -n'
ediff() { e --eval "(ediff-files \"$1\" \"$2\")"; }
e() { pgrep emacs && emacsclient -n "$@" || emacs -nw "$@" }
ediff() { emacs -nw --eval "(ediff-files \"$1\" \"$2\")"; }
eman() { emacs -nw --eval "(switch-to-buffer (man \"$1\"))"; }
ekill() { emacsclient --eval '(kill-emacs)'; }