zsh/.aliases/command-specific/emacsclient

13 lines
275 B
Plaintext

## Emacs aliases
alias e="emacsclient"
alias en="e -n"
alias et="e -t"
alias ec="e -c"
alias ecn="ec -n"
function magit() {
ecn -e '(progn (let ((old-frame (selected-frame)))
(magit-status "'"$(realpath ${1-.})"'")
(delete-frame old-frame)))'
}