Commits

Eric Roshan Eisner committed 8dee2fd

fix keybindings for readline and emacs from sshinatab

  • Participants
  • Parent commits fc86da3

Comments (0)

Files changed (2)

 (global-set-key (kbd "<M-up>") '(lambda () (interactive) (other-window -1)))
 (global-set-key (kbd "C-b") 'ff-find-related-file)
 
+;; for terminals that insist on sending C-h for ctrl-backspace
+(global-set-key (kbd "C-y") help-map)
+(global-set-key (kbd "C-h") 'backward-kill-word)
+(global-set-key (kbd "C-M-h") 'kill-word)
+
 (global-set-key (kbd "C-x C-g") 'keyboard-quit)
 (global-set-key (kbd "C-c C-g") 'keyboard-quit)
-(global-set-key (kbd "C-h C-g") 'keyboard-quit)
+(global-set-key (kbd "C-y C-g") 'keyboard-quit)
 (global-set-key (kbd "C-_") 'comment-dwim) ;; aka C-/ which better mirrors //
 
 ;; macros should take far fewer strokes
+"\C-h": backward-kill-word
+"\e[3;5~": kill-word
+"\e[1;5C": forward-word
+"\e[1;5D": backward-word
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line