add some emacs magic

This commit is contained in:
Marco Thomas
2021-06-19 15:14:09 +02:00
parent e54bf110da
commit 5b818d6c99
4 changed files with 45 additions and 14 deletions

View File

@@ -43,21 +43,25 @@ esac
export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} "
zstyle ':vcs_info:git:*' formats '|%b '
# ============================== Exports
export EDITOR="TERM=alacritty-direct emacsclient -c -nw -a 'emacs -nw'"
export VISUAL="emacsclient -c -a emacs"
export LANG="en_US.UTF-8"
# ============================== Aliases
alias emacsnw="TERM=alacritty-direct emacsclient -nw -a 'emacs -nw'"
alias fontscache="fc-cache -f -v"
alias ofen="cc"
alias mon2cam="deno run --unstable -A -r -q https://raw.githubusercontent.com/ShayBox/Mon2Cam/master/src/mod.ts"
if [[ -x $(which nvim 2> /dev/null) ]]; then
if command -v nvim &> /dev/null; then
alias vim="nvim"
fi
if command -v rg &> /dev/null; then
alias grep="rg"
fi
if command -v btm &> /dev/null; then
alias top="btm"
alias htop="btm"
fi
alias sag="ssh-add ~/.ssh/github"
alias s="cd ~/scripts/"
@@ -75,6 +79,11 @@ if [ -f ~/.zshrc_local ]; then
source ~/.zshrc_local
fi
# ============================== Exports
export EDITOR="vim"
export VISUAL="vim"
export LANG="en_US.UTF-8"
# ============================== Completion
unsetopt menu_complete # do not autoselect the first completion entry
unsetopt flowcontrol