From f5a976637ee1b1ba1d768c7fb8c3976f1957c29b Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 18 Mar 2012 10:24:26 -0400 Subject: [PATCH] Fix Emacs backward-kill-line binding --- keyboard.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/keyboard.zsh b/keyboard.zsh index 9293d930..b64beeae 100644 --- a/keyboard.zsh +++ b/keyboard.zsh @@ -78,8 +78,9 @@ if [[ "$keymap" == (emacs|) ]]; then bindkey -M emacs "$keyinfo[Escape]$keyinfo[Right]" emacs-forward-word # Kill to the beginning of the line. - [[ -n "$keyinfo[Control]" ]] && \ - bindkey -M emacs "$keyinfo[Control]U" backward-kill-line + [[ -n "$keyinfo[Escape]" ]] && \ + for key in "$keyinfo[Escape]"{K,k}; \ + bindkey -M emacs "$key" backward-kill-line # Redo [[ -n "$keyinfo[Escape]" ]] && \