Improve emacs aliases

This commit is contained in:
Alexander Rosenberg 2023-09-30 21:40:00 -07:00
parent e7f9937b52
commit 75408901c0
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -60,14 +60,17 @@ if [[ -v NVIM ]]; then
alias n=nvr
alias nvim=nvr
alias e=nvr
alias emacs=nvr
elif [[ -v INSIDE_EMACS ]]; then
export EDITOR='emacsclient'
alias e='emacsclient '
alias emacs='emacsclient '
alias n='emacsclient '
else
export EDITOR='emacsclient -nw'
alias n=nvim
alias e='emacsclient -nw '
alias emacs='emacsclient -nw '
fi
export VISUAL="${EDITOR}"
alias se=sudoedit