zsh/.aliases/command-specific/emacsclient

13 lines
275 B
Plaintext
Raw Normal View History

2015-07-07 11:18:40 -04:00
## Emacs aliases
alias e="emacsclient"
alias en="e -n"
alias et="e -t"
alias ec="e -c"
alias ecn="ec -n"
2019-05-06 09:12:52 -04:00
function magit() {
ecn -e '(progn (let ((old-frame (selected-frame)))
(magit-status "'"$(realpath ${1-.})"'")
(delete-frame old-frame)))'
2019-05-06 09:12:52 -04:00
}