Remove dired alias

This commit is contained in:
Alexander Rosenberg 2024-05-12 19:21:37 -07:00
parent c030bd1ab7
commit 02b3a5ff58
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -79,26 +79,12 @@ elif [[ -v INSIDE_EMACS ]]; then
alias e='emacsclient '
alias emacs='emacsclient '
alias n='emacsclient '
alias dired='emacsclient '
alias d='emacsclient '
else
export EDITOR='emacsclient -a nvim -nw'
# Because I keep using n by mistake
alias emacs="${EDITOR} "
alias n=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
export VISUAL="${EDITOR}"