Change to emacs
This commit is contained in:
parent
37f663c57d
commit
c1e3dc4b8f
10
init.zsh
10
init.zsh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user