* Using shift and arrow keys to select lines in Aquamacs (in org-mode)
@ 2009-11-10 19:14 Saptarshi Guha
2009-11-10 21:10 ` J. David Boyd
2009-11-11 5:14 ` PT
0 siblings, 2 replies; 9+ messages in thread
From: Saptarshi Guha @ 2009-11-10 19:14 UTC (permalink / raw)
To: emacs-orgmode
Hello,
I know shift and arrow keys are used by org-mode. But is there a way
to remap them to selecting the line(as in Aquamacs text mode)
(e.g shift+down highlights the current line, shift+up highlights the
previous line etc).
I guess this has been asked before, but I could not find the thread .
I would be grateful if someone could direct me to the solution.
Much thanks
Saptarshi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
2009-11-10 19:14 Using shift and arrow keys to select lines in Aquamacs (in org-mode) Saptarshi Guha
@ 2009-11-10 21:10 ` J. David Boyd
2009-11-10 21:17 ` Saptarshi Guha
2009-11-10 22:03 ` Sebastian Rose
2009-11-11 5:14 ` PT
1 sibling, 2 replies; 9+ messages in thread
From: J. David Boyd @ 2009-11-10 21:10 UTC (permalink / raw)
To: emacs-orgmode
Saptarshi Guha <saptarshi.guha@gmail.com> writes:
> Hello,
> I know shift and arrow keys are used by org-mode. But is there a way
> to remap them to selecting the line(as in Aquamacs text mode)
> (e.g shift+down highlights the current line, shift+up highlights the
> previous line etc).
>
> I guess this has been asked before, but I could not find the thread .
> I would be grateful if someone could direct me to the solution.
>
> Much thanks
> Saptarshi
>
>
I think that would break a great many things that org does automatically...
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
2009-11-10 21:10 ` J. David Boyd
@ 2009-11-10 21:17 ` Saptarshi Guha
2009-11-10 22:03 ` Sebastian Rose
1 sibling, 0 replies; 9+ messages in thread
From: Saptarshi Guha @ 2009-11-10 21:17 UTC (permalink / raw)
To: J. David Boyd; +Cc: emacs-orgmode
True, however i came across two options that (i think) does the job ,
but does not work for me
(setq org-replace-disputed-keys t)
(setq org-CUA-compatible t)
Are these the correct options to set (loaded from .emacs file)
Regards
Saptarshi
On Tue, Nov 10, 2009 at 4:10 PM, J. David Boyd <david@adboyd.com> wrote:
> Saptarshi Guha <saptarshi.guha@gmail.com> writes:
>
>> Hello,
>> I know shift and arrow keys are used by org-mode. But is there a way
>> to remap them to selecting the line(as in Aquamacs text mode)
>> (e.g shift+down highlights the current line, shift+up highlights the
>> previous line etc).
>>
>> I guess this has been asked before, but I could not find the thread .
>> I would be grateful if someone could direct me to the solution.
>>
>> Much thanks
>> Saptarshi
>>
>>
>
> I think that would break a great many things that org does automatically...
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
2009-11-10 21:10 ` J. David Boyd
2009-11-10 21:17 ` Saptarshi Guha
@ 2009-11-10 22:03 ` Sebastian Rose
2009-11-10 22:11 ` Saptarshi Guha
1 sibling, 1 reply; 9+ messages in thread
From: Sebastian Rose @ 2009-11-10 22:03 UTC (permalink / raw)
To: emacs-orgmode
david@adboyd.com (J. David Boyd) writes:
> Saptarshi Guha <saptarshi.guha@gmail.com> writes:
>
>> Hello,
>> I know shift and arrow keys are used by org-mode. But is there a way
>> to remap them to selecting the line(as in Aquamacs text mode)
>> (e.g shift+down highlights the current line, shift+up highlights the
>> previous line etc).
How about get used to Emacs keys for this purpose:
C-SPACE UP
C-SPACE set's a mark and moving point extends the region.
The big advantage is, that you can use all moving commands Emacs
provides (`M-f', `M-b'...)
Some keys/functions select text directly:
M-h - mark-paragraph
C-x C-p - mark-page
M-x mark- TAB - show all marking commands
Also, if you do not use org-mouse, you could use the left and right
mouse button - optionally holding down the ALT key for a secondary
selection.
Pressing the middle button inserts the selection, with ALT the secondary
one.
While selecting, you can extend and narrow the selection in either
direction be pressing the right button repeatedly.
Right double-click cuts.
Some of this depends on your setting of the variable
`transient-mark-mode', which you can customize.
Sebastian
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
2009-11-10 22:03 ` Sebastian Rose
@ 2009-11-10 22:11 ` Saptarshi Guha
2009-11-10 22:41 ` Darlan Cavalcante Moreira
0 siblings, 1 reply; 9+ messages in thread
From: Saptarshi Guha @ 2009-11-10 22:11 UTC (permalink / raw)
To: Sebastian Rose; +Cc: emacs-orgmode
Thank you Sebastian. The best way to emacs happiness is to use its keys.
These shortcuts are extremely useful - I'll adopt them.
Regards
Saptarshi
> How about get used to Emacs keys for this purpose:
>
> C-SPACE UP
>
>
> C-SPACE set's a mark and moving point extends the region.
> The big advantage is, that you can use all moving commands Emacs
> provides (`M-f', `M-b'...)
>
>
>
> Some keys/functions select text directly:
>
> M-h - mark-paragraph
> C-x C-p - mark-page
> M-x mark- TAB - show all marking commands
>
>
>
> Also, if you do not use org-mouse, you could use the left and right
> mouse button - optionally holding down the ALT key for a secondary
> selection.
>
> Pressing the middle button inserts the selection, with ALT the secondary
> one.
>
>
> While selecting, you can extend and narrow the selection in either
> direction be pressing the right button repeatedly.
>
> Right double-click cuts.
>
>
> Some of this depends on your setting of the variable
> `transient-mark-mode', which you can customize.
>
>
>
>
>
> Sebastian
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
2009-11-10 22:11 ` Saptarshi Guha
@ 2009-11-10 22:41 ` Darlan Cavalcante Moreira
0 siblings, 0 replies; 9+ messages in thread
From: Darlan Cavalcante Moreira @ 2009-11-10 22:41 UTC (permalink / raw)
To: sguha; +Cc: emacs-orgmode
One shortcut really nice when selecting some text is C-x C-x. It will
change the cursor from one side of the selection to the other one.
- Darlan
At Tue, 10 Nov 2009 17:11:36 -0500,
Saptarshi Guha <saptarshi.guha@gmail.com> wrote:
>
> Thank you Sebastian. The best way to emacs happiness is to use its keys.
> These shortcuts are extremely useful - I'll adopt them.
>
> Regards
> Saptarshi
>
>
>
>
> > How about get used to Emacs keys for this purpose:
> >
> > C-SPACE UP
> >
> >
> > C-SPACE set's a mark and moving point extends the region.
> > The big advantage is, that you can use all moving commands Emacs
> > provides (`M-f', `M-b'...)
> >
> >
> >
> > Some keys/functions select text directly:
> >
> > M-h - mark-paragraph
> > C-x C-p - mark-page
> > M-x mark- TAB - show all marking commands
> >
> >
> >
> > Also, if you do not use org-mouse, you could use the left and right
> > mouse button - optionally holding down the ALT key for a secondary
> > selection.
> >
> > Pressing the middle button inserts the selection, with ALT the secondary
> > one.
> >
> >
> > While selecting, you can extend and narrow the selection in either
> > direction be pressing the right button repeatedly.
> >
> > Right double-click cuts.
> >
> >
> > Some of this depends on your setting of the variable
> > `transient-mark-mode', which you can customize.
> >
> >
> >
> >
> >
> > Sebastian
> >
> >
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Remember: use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
2009-11-10 19:14 Using shift and arrow keys to select lines in Aquamacs (in org-mode) Saptarshi Guha
2009-11-10 21:10 ` J. David Boyd
@ 2009-11-11 5:14 ` PT
2009-11-11 14:05 ` J. David Boyd
1 sibling, 1 reply; 9+ messages in thread
From: PT @ 2009-11-11 5:14 UTC (permalink / raw)
To: emacs-orgmode
Saptarshi Guha <saptarshi.guha <at> gmail.com> writes:
>
> Hello,
> I know shift and arrow keys are used by org-mode. But is there a way
> to remap them to selecting the line(as in Aquamacs text mode)
> (e.g shift+down highlights the current line, shift+up highlights the
> previous line etc).
>
I rebound the keys in my org-mode hook:
(add-hook 'org-mode-hook 'my-org-mode-stuff)
(defun my-org-mode-stuff ()
...
(local-set-key (kbd "C-S-<right>") 'forward-word-mark)
(local-set-key (kbd "C-S-<left>") 'backward-word-mark)
(local-set-key (kbd "S-<right>") 'forward-char-mark)
(local-set-key (kbd "S-<left>") 'backward-char-mark)
(local-set-key (kbd "S-<up>") 'previous-line-mark)
(local-set-key (kbd "S-<down>") 'next-line-mark)
...
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
2009-11-11 5:14 ` PT
@ 2009-11-11 14:05 ` J. David Boyd
2009-11-11 14:34 ` PT
0 siblings, 1 reply; 9+ messages in thread
From: J. David Boyd @ 2009-11-11 14:05 UTC (permalink / raw)
To: emacs-orgmode
PT <spamfilteraccount@gmail.com> writes:
> Saptarshi Guha <saptarshi.guha <at> gmail.com> writes:
>
>>
>> Hello,
>> I know shift and arrow keys are used by org-mode. But is there a way
>> to remap them to selecting the line(as in Aquamacs text mode)
>> (e.g shift+down highlights the current line, shift+up highlights the
>> previous line etc).
>>
>
> I rebound the keys in my org-mode hook:
>
>
>
> (add-hook 'org-mode-hook 'my-org-mode-stuff)
>
> (defun my-org-mode-stuff ()
> ...
> (local-set-key (kbd "C-S-<right>") 'forward-word-mark)
> (local-set-key (kbd "C-S-<left>") 'backward-word-mark)
> (local-set-key (kbd "S-<right>") 'forward-char-mark)
> (local-set-key (kbd "S-<left>") 'backward-char-mark)
> (local-set-key (kbd "S-<up>") 'previous-line-mark)
> (local-set-key (kbd "S-<down>") 'next-line-mark)
> ...
>
But that breaks S-<up> modifying the priority on a task, as well as
other built-in org functionality...
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
2009-11-11 14:05 ` J. David Boyd
@ 2009-11-11 14:34 ` PT
0 siblings, 0 replies; 9+ messages in thread
From: PT @ 2009-11-11 14:34 UTC (permalink / raw)
To: emacs-orgmode
J. David Boyd <david <at> adboyd.com> writes:
>
> But that breaks S-<up> modifying the priority on a task, as well as
> other built-in org functionality...
No, it doesn't break it, because there are other builtin keys for
setting task priority (C-c ,).
For me text selection is a much more frequent task than changing priorities,
so it makes more sense to assign the more convenient binding to selection
and use the less convenient one for the less frequent operation.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-11-11 14:35 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 19:14 Using shift and arrow keys to select lines in Aquamacs (in org-mode) Saptarshi Guha
2009-11-10 21:10 ` J. David Boyd
2009-11-10 21:17 ` Saptarshi Guha
2009-11-10 22:03 ` Sebastian Rose
2009-11-10 22:11 ` Saptarshi Guha
2009-11-10 22:41 ` Darlan Cavalcante Moreira
2009-11-11 5:14 ` PT
2009-11-11 14:05 ` J. David Boyd
2009-11-11 14:34 ` PT
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).