Remove dired alias
This commit is contained in:
parent
c030bd1ab7
commit
02b3a5ff58
14
init.zsh
14
init.zsh
@ -79,26 +79,12 @@ elif [[ -v INSIDE_EMACS ]]; then
|
|||||||
alias e='emacsclient '
|
alias e='emacsclient '
|
||||||
alias emacs='emacsclient '
|
alias emacs='emacsclient '
|
||||||
alias n='emacsclient '
|
alias n='emacsclient '
|
||||||
alias dired='emacsclient '
|
|
||||||
alias d='emacsclient '
|
|
||||||
else
|
else
|
||||||
export EDITOR='emacsclient -a nvim -nw'
|
export EDITOR='emacsclient -a nvim -nw'
|
||||||
# Because I keep using n by mistake
|
# Because I keep using n by mistake
|
||||||
alias emacs="${EDITOR} "
|
alias emacs="${EDITOR} "
|
||||||
alias n=emacs
|
alias n=emacs
|
||||||
alias e=emacs
|
alias e=emacs
|
||||||
function dired() {
|
|
||||||
if (( ${#} == 0 )); then
|
|
||||||
emacsclient -nw --eval '(dired ".")'
|
|
||||||
else
|
|
||||||
args=()
|
|
||||||
for arg; do
|
|
||||||
args+=(--eval "(dired \"${arg:gs#\\#\\\\#:gs#\"#\\\"#}\")")
|
|
||||||
done
|
|
||||||
emacsclient -nw ${args}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
alias d=dired
|
|
||||||
fi
|
fi
|
||||||
export VISUAL="${EDITOR}"
|
export VISUAL="${EDITOR}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user