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

Peter Salazar cycleofsong at gmail.com
Tue Feb 28 16:16:51 EST 2012


I was able to get this working using by disabling cua mode and using
org-replace-disputed keys. Now I can change timestamps and still use
shift-select.

Unfortunately, this breaks the OSX behavior of option-shift-select, for
selecting whole words at a time. (This instead actives "set mark.")

As an editor, I'm cutting and pasting words and sentences all the time, and
option-select is an important part of my workflow since it allows me to
quickly highlight by word.

Is there a solution that will preserve my ability to use
option-shift-select? I thought maybe if I key-bound "change timestamp" to
CTRL-rightarrow, I could reserve shift for editing.

Anyone know if this is possible?


On Wed, Feb 22, 2012 at 4:25 AM, Alan Schmitt <
alan.schmitt at polytechnique.org> wrote:

> 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:
> http://lists.aquamacs.org/**pipermail/aquamacs-devel/2012-**
> January/009794.html<http://lists.aquamacs.org/pipermail/aquamacs-devel/2012-January/009794.html>
>
> 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,
>
> Alan
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20120228/ae1c7e61/attachment.html>


More information about the MacOSX-Emacs mailing list