zsh: add switch-to-emacs keybind

This commit is contained in:
Henrik Lissner 2015-09-29 16:35:10 -04:00
parent 59aca5671f
commit e0c614e8a8

View file

@ -22,6 +22,10 @@ bindkey "^[3;5~" delete-char
bindkey -M vicmd "?" history-incremental-pattern-search-backward
bindkey -M vicmd "/" history-incremental-pattern-search-forward
switch-to-emacs() osascript -e 'tell application "Emacs" to activate'
zle -N switch-to-emacs
bindkey -M vicmd '\\\\' switch-to-emacs
# bind UP and DOWN arrow keys
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up