7

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...)

glucas
  • 20,563
  • 1
  • 54
  • 84
NVaughan
  • 1,481
  • 12
  • 27

1 Answers1

7

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.

glucas
  • 20,563
  • 1
  • 54
  • 84
  • 2
    In case you get Symbol's value as variable is void: org-mode-map make sure to (require 'org) first. – dev Sep 07 '16 at 15:38