From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Emacs in a Term and Org Date: Mon, 1 Mar 2010 08:28:22 +0100 Message-ID: <78677E9E-F06E-44A5-8029-431B01D6810C@gmail.com> References: <6fsr57-7ht.ln1@news.eternal-september.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm0pT-0004Ci-KE for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 03:18:15 -0500 Received: from [140.186.70.92] (port=43545 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm0pO-0004Bs-8W for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 03:18:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm0pK-0001IJ-4R for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 03:18:09 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]:47225) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm0pI-0001Ho-Hl for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 03:18:04 -0500 Received: by fg-out-1718.google.com with SMTP id d23so426048fga.12 for ; Mon, 01 Mar 2010 00:18:02 -0800 (PST) In-Reply-To: <6fsr57-7ht.ln1@news.eternal-september.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: emacs-orgmode@gnu.org 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