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 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
|
||||||
|
Loading…
Reference in New Issue
Block a user