6

I installed a package that changes emacs windows using Shift+arrow, and it works in various modes I use but not in org-mode. Is there a reason why org-mode shadows this command?

  • The following link demonstrates how to disable a few org-mode-map key bindings: stackoverflow.com/a/17540326/2112489 That approach will permit global key bindings to be used again. – lawlist May 16 '16 at 1:50
  • It would be helpful to know the package for window changing you are referring to (windmove?). Have a look at orgmode.org/manual/Conflicts.html. – Kaushal Modi May 16 '16 at 12:01
  • Thanks for prompting me, I have now found it in my init file. It is framemove. – Alejandro Erickson May 16 '16 at 14:48
  • @AlejandroErickson OK. The org-mode Conflicts section should help for that too. Check out the CUA and windmove sections over there. – Kaushal Modi May 16 '16 at 15:17
5

Add the following to your config, like described in "Packages that conflict with Org mode":

(add-hook 'org-shiftup-final-hook 'windmove-up)
(add-hook 'org-shiftleft-final-hook 'windmove-left)
(add-hook 'org-shiftdown-final-hook 'windmove-down)
(add-hook 'org-shiftright-final-hook 'windmove-right)

Set org-support-shift-select customization variable to "Everywhere except timestamps" (setq org-support-shift-select 'always), otherwise shift+arrows will still have org-mode keybidnings on headings.

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.