When shift-select-mode
is on (Emacs' default), C-S-up
in text mode selects the previous paragraph.
This does not work under Org-Mode, where C-S-up
gets translated into C-up
, which is mapped to org-backward-paragraph
and just moves up, but does not select the paragraph.
The question is how to enable shift selection for C-S-up
.
The solution here is not ideal, as it relies on backward-paragraph
(instead of org-backward-paragraph
), which does not work well with several Org-mode constructs (e.g., doesn't treat bullet points as paragraphs).
PS: I'm using org-support-shift-select
and org-replace-disputed keys
, like this:
(setq org-support-shift-select t
org-replace-disputed-keys t)
(setq org-disputed-keys
'(
([(shift left)] . [(meta -)]) ; change status (todo/closed/done)
([(shift right)] . [(meta =)]) ;
([(shift up)] . [(control meta -)]) ; change priority
([(shift down)] . [(control meta =)]) ;
([(control shift right)] . [(meta +)]) ; status of group
([(control shift left)] . [(meta _)]) ;
([(control shift up)] . [(control meta +)]) ; change clock logs
([(control shift down)] . [(control meta _)]) ;
))
advice
. It sounds like you just want to add an interactive code"^"
toorg-backward-paragraph
so that native shift-select works. You might want to play around with modifying that function in a scratch buffer and see if you can get it to do what you want -- the interactive statement [to enable native shift-select] would look like this:(interactive "^")
instead of(interactive)
. – lawlist Jul 18 '18 at 1:45org-backward-element
in the manner mentioned in the previous comment and that is what I use instead oforg-backward-paragraph
. I do the same thing withorg-forward-element
. And, I bind them to M-up/M-down and just hold down the shift key if I want native shift-selection. – lawlist Jul 18 '18 at 1:52