Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I also tried adding a ' in front of the lambda functions. That didn't work too. Like (global-set-key (kbd "<left>") '(lambda() ( message "Use Vim keys: h for Left"))) Commented Sep 24, 2017 at 8:06
  • 2
    Local mode bindings trump global bindings. Any mode that redefines arrow keys would override your global definition. Org mode would be probably even harder to redefine (I'm not sure though) because keys may be defined on several levels. Anyhow, try making your setting local by moving it to org-mode-hook and using local-set-key instead. Commented Sep 24, 2017 at 9:34
  • It looks like you are using evil. Is that correct? If so, please edit your question to mention evil explicitly. You will need to bind keys differently in standard Emacs vs evil. Commented Sep 26, 2017 at 14:47