zsh: add switch-to-emacs keybind
This commit is contained in:
parent
59aca5671f
commit
e0c614e8a8
|
@ -22,6 +22,10 @@ bindkey "^[3;5~" delete-char
|
||||||
bindkey -M vicmd "?" history-incremental-pattern-search-backward
|
bindkey -M vicmd "?" history-incremental-pattern-search-backward
|
||||||
bindkey -M vicmd "/" history-incremental-pattern-search-forward
|
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
|
# bind UP and DOWN arrow keys
|
||||||
zmodload zsh/terminfo
|
zmodload zsh/terminfo
|
||||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||||
|
|
Loading…
Reference in a new issue