5

Is there a simple way (e.g. customization option) to disable some of org-mode's keyboard shortcuts? I normally use shift-right_arrow or shift-left_arrow to select text (expand region), but in org-mode this combination serves to promote/demote heading.

(Yes, I know there's an emacsen way of marking and expanding the region, but I was wondering if there's and out-of-the-box way of disabling this feature in org-mode...)

6

Are you looking to disable those keys permanently for org-mode? You can do that by unsetting the keys in org-mode-map.

For example, add the following to your emacs init file:

(eval-after-load 'org
  (progn
    (define-key org-mode-map (kbd "<S-right>") nil)
    (define-key org-mode-map (kbd "<S-left>") nil)))

When org mode is loaded this removes the org-local bindings for shift-right and left. That way the global bindings will work in org files.

  • 1
    In case you get Symbol's value as variable is void: org-mode-map make sure to (require 'org) first. – dev Sep 7 '16 at 15:38

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.