Change to emacs

This commit is contained in:
Alexander Rosenberg 2023-09-27 16:34:49 -07:00
parent 37f663c57d
commit c1e3dc4b8f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -54,14 +54,20 @@ alias xargs='xargs '
cmd_exists sudo && alias sudo='sudo '
cmd_exists doas && alias doas='doas '
# Neovim stuff
# Emacs and Neovim stuff
if [[ -v NVIM ]]; then
export EDITOR=nvr
alias n=nvr
alias nvim=nvr
alias e=nvr
elif [[ -v INSIDE_EMACS ]]; then
export EDITOR='emacsclient'
alias e='emacsclient '
alias n='emacsclient '
else
export EDITOR=nvim
export EDITOR='emacsclient -nw'
alias n=nvim
alias e='emacsclient -nw '
fi
export VISUAL="${EDITOR}"
alias se=sudoedit