From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Shift-Arrow Pass Through for windmove? Date: Fri, 23 Apr 2010 20:54:53 +0200 Message-ID: <5BE40E2F-2FB3-4010-9C68-8D66E351BED7@gmail.com> References: <87633jb57w.wl%ded-law@ddoherty.net> <87ochaqhau.fsf@gmx.de> 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 1O5RIA-0003lH-5W for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 18:24:10 -0400 Received: from [140.186.70.92] (port=49055 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5RI5-0003ZJ-V7 for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 18:24:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5RHY-0004jC-4Z for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 18:23:33 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:41312) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5RHX-0004ip-Vz for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 18:23:32 -0400 Received: by ewy6 with SMTP id 6so3227648ewy.32 for ; Fri, 23 Apr 2010 15:23:31 -0700 (PDT) In-Reply-To: <87ochaqhau.fsf@gmx.de> 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: Sebastian Rose Cc: "Daniel E. Doherty" , "emacs-orgmode@gnu org" On Apr 23, 2010, at 6:12 PM, Sebastian Rose wrote: > Daniel E. Doherty writes: >> All, >> >> I make *very* frequent use of the shift-arrow keys to move from >> window >> to window inside emacs via windmove. It is probably the most >> frequent >> key combination I access. >> >> Anyway, is there a way to make org-mode friendlier to it by passing >> the >> key along whenever org-mode would otherwise throw an error. For >> example, when not on a heading, when in the agenda, and wherever >> else? >> >> I really like Carsten's use of the arrow keys for structure editing >> and >> don't want to lose that, just whenever org-mode can't make use of the >> keys. >> >> Regards, > > > > And here all the arrow keys. > > It's somewhat inelegant, since you always need to keep track of new > useful org-bindings. > > I would find an org-internal solution helpfull too. I use windmove. I have now added (defvar org-shiftup-hook nil "Hook for functions attaching themselves to `S-up'. See `org-ctrl-c-ctrl-c-hook' for more information.") (defvar org-shiftdown-hook nil "Hook for functions attaching themselves to `S-down'. See `org-ctrl-c-ctrl-c-hook' for more information.") (defvar org-shiftleft-hook nil "Hook for functions attaching themselves to `S-left'. See `org-ctrl-c-ctrl-c-hook' for more information.") (defvar org-shiftright-hook nil "Hook for functions attaching themselves to `S-right'. See `org-ctrl-c-ctrl-c-hook' for more information.") But I do not intend to attach specific functionality like windmove to them, and I'd like to reserve the possibility to make S-cursor do something in Org in more contexts. Hope this still helps. - Carsten > > Actually, your email made hack this together :) > > > > > Sebastian > _______________________________________________ > 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 - Carsten