Improve emacs aliases
This commit is contained in:
parent
e7f9937b52
commit
75408901c0
3
init.zsh
3
init.zsh
@ -60,14 +60,17 @@ if [[ -v NVIM ]]; then
|
|||||||
alias n=nvr
|
alias n=nvr
|
||||||
alias nvim=nvr
|
alias nvim=nvr
|
||||||
alias e=nvr
|
alias e=nvr
|
||||||
|
alias emacs=nvr
|
||||||
elif [[ -v INSIDE_EMACS ]]; then
|
elif [[ -v INSIDE_EMACS ]]; then
|
||||||
export EDITOR='emacsclient'
|
export EDITOR='emacsclient'
|
||||||
alias e='emacsclient '
|
alias e='emacsclient '
|
||||||
|
alias emacs='emacsclient '
|
||||||
alias n='emacsclient '
|
alias n='emacsclient '
|
||||||
else
|
else
|
||||||
export EDITOR='emacsclient -nw'
|
export EDITOR='emacsclient -nw'
|
||||||
alias n=nvim
|
alias n=nvim
|
||||||
alias e='emacsclient -nw '
|
alias e='emacsclient -nw '
|
||||||
|
alias emacs='emacsclient -nw '
|
||||||
fi
|
fi
|
||||||
export VISUAL="${EDITOR}"
|
export VISUAL="${EDITOR}"
|
||||||
alias se=sudoedit
|
alias se=sudoedit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user