Fork me on GitHub
#emacs
<
2019-01-24
>
madstap11:01:02

I'm learning org mode and I found that it breaks shift-left -right -up -down to navigate between buffers. Those commands mean things when the cursor is at headings and timestamps and stuff, which I guess I want to keep, but when the cursor is somewhere else it tells me user-error: To use shift-selection with Org-mode, customize ‘org-support-shift-select’. What I actually want in that situation is not shift-select, but to navigate between buffers. How can I accomplish this?

madstap12:01:19

To answer my own question,

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

theeternalpulse23:01:34

I was wondering, when adding hooks, when do you use #' over ' for the function symbols?

theeternalpulse20:01:57

Missed this, going to take a look!

dpsutton23:01:38

(best resource that i know of)