1

Evil-mode binds C-wh to evil-window-left. I'd like to bind C-wC-h to the same so it will work whether or not I lift my finger off the Control key in time. But C-h is the help key. Is there any reasonable workaround for this?

I'm willing to lose the Help functions on C-h since I can access them elsewhere, like F1.

Update: I may have found the solution.

(define-key evil-normal-state-map "\C-w\C-h" 'evil-window-left)

This seems to work without affecting C-h behavior in other cases.

  • You can post your own answer, and you can accept it. If you are not interested in doing that or in obtaining other answers, consider deleting your question. – Drew Aug 23 '16 at 16:06
0

This turned out to be simpler than I expected:

(define-key evil-normal-state-map "\C-w\C-h" 'evil-window-left)

It clobbers the help key, but only in this key-map and only following a C-w.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.