The problem seems to be that evil-mode translates the key chord M-<left> into M-h. Unsetting M-h by binding it to nil in the local, global or org-mode map in a org-mode hook does not help.

  • Is it bound in an evil-mode keymap? If so, consider unbinding it there. – Drew Aug 31 '17 at 17:06
  • I don't know where it is bound. How can I figure it out? As I said, I suspect that evil-mode creates a binding M-h matching M-<left> because h is essentially the left arrow key in VIM. – Lenar Hoyt Aug 31 '17 at 18:25
  • Look in the evil source code. Or just try evil-mode-map or something. Or wait till someone here points you in the right direction. It's also possible that Evil uses its own special functions to create or change key bindings... – Drew Aug 31 '17 at 23:27
  • I'd refrain from such wild guesses until I've verified they're true, like by pasting the output of F1 k M-<left>. – wasamasa Sep 1 '17 at 5:14
  • <M-left> runs the command org-metaleft (found in org-mode-map), M-h runs the command org-metaleft. I tried unbinding it from all evil state maps and spacemacs-org-mode-map. I also tried listing all maps that contain (kbd "M-h") but it's only diff-mode-map which is unrelated. So does evil perhaps dynamically remap <left> to h, not via a key map? – Lenar Hoyt Sep 1 '17 at 22:05

Your Answer

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

Browse other questions tagged or ask your own question.