[OS X Emacs] shift-select support AND org-mode features?

Alan Schmitt alan.schmitt at polytechnique.org
Wed Feb 22 04:25:02 EST 2012

On 22 Feb 2012, at 6:55, Peter Salazar wrote:

> I need shift-select to be able to select text, since that's crucial to 
> my
> editing workflow. But I'd also like to be able to use org-mode's
> shift-arrowkeys functions, the way you can use shift-rightarrow to 
> change
> timestamps or to cycle between TODO states.
> Is there a way to map these functions onto the CONTROL key, or better 
> yet,
> the FN key? So that CONTROL-rightarrow or FN-rightarrow would change 
> the
> timestamp and cycle TODO states?

What I ended up doing is:
- turn off cua mode
(cua-mode 0)
- turn on org-support-shift-select (should be on by default)

This way shift-select works in text, and shift arrow works in headlines 
and timestamps.

You can find a discussion about this here:

There may be a way to bind "fn-rightarrow", but you then need to 
actually bind the "end" key directly. Here is what I do (I use fn as 
meta key, so I'm binding to different things):

(add-hook 'org-mode-hook
	  (lambda ()
	    (define-key org-mode-map [kp-enter] 'org-meta-return)
	    (define-key org-mode-map [prior] 'org-metaup)
	    (define-key org-mode-map [next]  'org-metadown)
	    (define-key org-mode-map [home] 'org-metaleft)
	    (define-key org-mode-map [end] 'org-metaright)

Hope this helps,


More information about the MacOSX-Emacs mailing list