* Emacs in a Term and Org
@ 2010-03-01 4:29 Richard Riley
2010-03-01 7:28 ` Carsten Dominik
2010-03-01 8:09 ` Jan Böcker
0 siblings, 2 replies; 6+ messages in thread
From: Richard Riley @ 2010-03-01 4:29 UTC (permalink / raw)
To: emacs-orgmode
More often than not I run emacsclient in rxvt under Tmux (a Screen
replacement). As a result (and inconveniently) a lot of common key
sequences dont work properly - generally involving shift/control/alt and
arrow and function keys. Most of the time it doesn't matter as there is
always a work around.
In org-mode the only real headache this gives me are the calendar
commands for scheduling which involve the arrow keys. e.g S-left/right
for sliding a date a day or two. Currently I can use "+4d" for example
instead of 4 x S-right, however not always convenient - Currently I need
to bring up an X frame pretty much only for org scheduling.
I was wondering if anyone here has devised a consistent key map not including
these modern fangled "arrow keys" ;) ?
In the mini buffer we cant use the standard calendar keys (which would
be nice) since its a freetype field and these calendar UI keys are the
standard emacs editline commands (C-f C-b etc).
I did wonder about a solution I could try to implement which would be to
have a setting, default to nil, which would default any date edit input
to the calendar UI only and you can then enter the actual editline ui
for entering a time or relative date by hitting something like "@" which
has no current calendar binding and then you can have the default
currently defined behaviour.
Possibly I've overlooked other options / solutions but the arrow keys are
pretty inconvenient in layout for me in addition to not working
correctly in conjunction with S/C in many Term implementations.
Possibly its just a urxvt/tmux solution I need : but the whole termcap
/term and emacs issue is a nest of vipers ;)
Ideas and pointers very welcome.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs in a Term and Org
2010-03-01 4:29 Emacs in a Term and Org Richard Riley
@ 2010-03-01 7:28 ` Carsten Dominik
2010-03-01 8:09 ` Jan Böcker
1 sibling, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-03-01 7:28 UTC (permalink / raw)
To: Richard Riley; +Cc: emacs-orgmode
On Mar 1, 2010, at 5:29 AM, Richard Riley wrote:
>
> More often than not I run emacsclient in rxvt under Tmux (a Screen
> replacement). As a result (and inconveniently) a lot of common key
> sequences dont work properly - generally involving shift/control/alt
> and
> arrow and function keys. Most of the time it doesn't matter as there
> is
> always a work around.
>
> In org-mode the only real headache this gives me are the calendar
> commands for scheduling which involve the arrow keys. e.g S-left/right
> for sliding a date a day or two. Currently I can use "+4d" for example
> instead of 4 x S-right, however not always convenient - Currently I
> need
> to bring up an X frame pretty much only for org scheduling.
>
> I was wondering if anyone here has devised a consistent key map not
> including
> these modern fangled "arrow keys" ;) ?
>
> In the mini buffer we cant use the standard calendar keys (which would
> be nice) since its a freetype field and these calendar UI keys are the
> standard emacs editline commands (C-f C-b etc).
>
> I did wonder about a solution I could try to implement which would
> be to
> have a setting, default to nil, which would default any date edit
> input
> to the calendar UI only and you can then enter the actual editline ui
> for entering a time or relative date by hitting something like "@"
> which
> has no current calendar binding and then you can have the default
> currently defined behaviour.
>
> Possibly I've overlooked other options / solutions but the arrow
> keys are
> pretty inconvenient in layout for me in addition to not working
> correctly in conjunction with S/C in many Term implementations.
>
> Possibly its just a urxvt/tmux solution I need : but the whole termcap
> /term and emacs issue is a nest of vipers ;)
>
> Ideas and pointers very welcome.
>
In case you did not know this: When you have figures out the keys you
want to use for the calendar, you can set them using `org-read-date-
minibuffer-setup-hook'.
Go read the source code of the function org-read-date (in org.el) to
see how these commands work, so that you can properly assign them to
other keys.
- Carsten
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs in a Term and Org
2010-03-01 4:29 Emacs in a Term and Org Richard Riley
2010-03-01 7:28 ` Carsten Dominik
@ 2010-03-01 8:09 ` Jan Böcker
2010-03-01 9:22 ` Richard Riley
1 sibling, 1 reply; 6+ messages in thread
From: Jan Böcker @ 2010-03-01 8:09 UTC (permalink / raw)
To: Richard Riley; +Cc: emacs-orgmode
On 01.03.2010 05:29, Richard Riley wrote:
>
> More often than not I run emacsclient in rxvt under Tmux (a Screen
> replacement). As a result (and inconveniently) a lot of common key
> sequences dont work properly - generally involving shift/control/alt and
> arrow and function keys. Most of the time it doesn't matter as there is
> always a work around.
>
[snip]
> Ideas and pointers very welcome.
Chapter "14.6 Using Org on a tty" in the manual lists, among other
things, the following alternative bindings for S-left/right:
`S-<left>' `C-c <left>'
`S-<right>' `C-c <right>'
HTH,
Jan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs in a Term and Org
2010-03-01 8:09 ` Jan Böcker
@ 2010-03-01 9:22 ` Richard Riley
2010-03-01 10:56 ` Jan Böcker
0 siblings, 1 reply; 6+ messages in thread
From: Richard Riley @ 2010-03-01 9:22 UTC (permalink / raw)
To: emacs-orgmode
Jan Böcker <jan.boecker@jboecker.de> writes:
R> On 01.03.2010 05:29, Richard Riley wrote:
>>
>> More often than not I run emacsclient in rxvt under Tmux (a Screen
>> replacement). As a result (and inconveniently) a lot of common key
>> sequences dont work properly - generally involving shift/control/alt and
>> arrow and function keys. Most of the time it doesn't matter as there is
>> always a work around.
>>
> [snip]
>> Ideas and pointers very welcome.
>
> Chapter "14.6 Using Org on a tty" in the manual lists, among other
> things, the following alternative bindings for S-left/right:
>
> `S-<left>' `C-c <left>'
> `S-<right>' `C-c <right>'
Hi Jan,
Not really as they still use the arrow keys. In terms any form of key
sequence involving them can cause havoc - I dont know if tmux/urxvt are
a particularly bad combo for this.
C-c <right> is reported as undefined. Possibly someone else can confirm
if it works on their setup? I tried it in urxvt and xterm.
>
> HTH,
> Jan
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please 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] 6+ messages in thread
* Re: Re: Emacs in a Term and Org
2010-03-01 9:22 ` Richard Riley
@ 2010-03-01 10:56 ` Jan Böcker
2010-03-01 12:52 ` Richard Riley
0 siblings, 1 reply; 6+ messages in thread
From: Jan Böcker @ 2010-03-01 10:56 UTC (permalink / raw)
To: Richard Riley; +Cc: emacs-orgmode
On 01.03.2010 10:22, Richard Riley wrote:
> Not really as they still use the arrow keys.
I am sorry, my brain must not have been fully functional when I posted this.
> C-c <right> is reported as undefined. Possibly someone else can confirm
> if it works on their setup? I tried it in urxvt and xterm.
I use urxvt with screen and just tried this; S-right does not work, but
C-c right does.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs in a Term and Org
2010-03-01 10:56 ` Jan Böcker
@ 2010-03-01 12:52 ` Richard Riley
0 siblings, 0 replies; 6+ messages in thread
From: Richard Riley @ 2010-03-01 12:52 UTC (permalink / raw)
To: emacs-orgmode
Jan Böcker <jan.boecker@jboecker.de> writes:
> On 01.03.2010 10:22, Richard Riley wrote:
>> Not really as they still use the arrow keys.
> I am sorry, my brain must not have been fully functional when I posted this.
>
>> C-c <right> is reported as undefined. Possibly someone else can confirm
>> if it works on their setup? I tried it in urxvt and xterm.
>
> I use urxvt with screen and just tried this; S-right does not work, but
> C-c right does.
OK, that gives me a start point - possibly its tmux related. Thanks for
the pointers.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-03-01 13:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-01 4:29 Emacs in a Term and Org Richard Riley
2010-03-01 7:28 ` Carsten Dominik
2010-03-01 8:09 ` Jan Böcker
2010-03-01 9:22 ` Richard Riley
2010-03-01 10:56 ` Jan Böcker
2010-03-01 12:52 ` Richard Riley
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).