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 sudo && alias sudo='sudo '
cmd_exists doas && alias doas='doas ' cmd_exists doas && alias doas='doas '
# Neovim stuff # Emacs and Neovim stuff
if [[ -v NVIM ]]; then if [[ -v NVIM ]]; then
export EDITOR=nvr export EDITOR=nvr
alias n=nvr alias n=nvr
alias nvim=nvr alias nvim=nvr
alias e=nvr
elif [[ -v INSIDE_EMACS ]]; then
export EDITOR='emacsclient'
alias e='emacsclient '
alias n='emacsclient '
else else
export EDITOR=nvim export EDITOR='emacsclient -nw'
alias n=nvim alias n=nvim
alias e='emacsclient -nw '
fi fi
export VISUAL="${EDITOR}" export VISUAL="${EDITOR}"
alias se=sudoedit alias se=sudoedit