From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: how to make TAB in agenda cycle the outline Date: Wed, 3 Jun 2009 12:13:20 +0200 Message-ID: <98D83C73-8455-43FA-81D2-7776EDECAE6E@gmail.com> References: <20524da70906011250s200533d7w4b70507cb40546ea@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) 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 1MBnTP-0004P8-EA for emacs-orgmode@gnu.org; Wed, 03 Jun 2009 06:13:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBnTJ-0004NH-SE for emacs-orgmode@gnu.org; Wed, 03 Jun 2009 06:13:30 -0400 Received: from [199.232.76.173] (port=46933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBnTJ-0004NA-L9 for emacs-orgmode@gnu.org; Wed, 03 Jun 2009 06:13:25 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:48928) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBnTJ-00018k-BC for emacs-orgmode@gnu.org; Wed, 03 Jun 2009 06:13:25 -0400 Received: by ewy6 with SMTP id 6so12576292ewy.42 for ; Wed, 03 Jun 2009 03:13:24 -0700 (PDT) In-Reply-To: <20524da70906011250s200533d7w4b70507cb40546ea@mail.gmail.com> 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: Samuel Wales Cc: emacs-orgmode@gnu.org On Jun 1, 2009, at 9:50 PM, Samuel Wales wrote: > I am trying to make TAB in the agenda cycle the node in the other > window, while keeping point in the agenda (ideally creating the other > window via SPC if it doesn't already exist). I am finding it a little > difficult. Any tips? Since TAB is used to go to the location in another window, I would recommend using SPACE for this purpose: (add-hook 'org-agenda-mode-hook (lambda () (define-key org-agenda-keymap " " 'org-agenda-cycle-show) (define-key org-agenda-mode-map " " 'org-agenda-cycle-show))) If you prefer TAB, use (add-hook 'org-agenda-mode-hook (lambda () (define-key org-agenda-keymap [tab] 'org-agenda-cycle-show) (define-key org-agenda-mode-map [tab] 'org-agenda-cycle-show))) `org-agenda-cycle-show' does almost, but not quite what org-cycle does. On first call, it just shows the entry like SPACE would. Further calls expose more context, including eventually even the LOGBOOK, before switching back to a folded state. I wrote this command a while ago and wanted to bind it to SPC by default, but something must have stopped me back then. Maybe, if a few people use this now, we can still decide to do so. - Carsten > > Thanks. > > P.S. Is there a reason why point is at bob in the agenda? If not, > maybe moving it to the first headline would be useful (dired does > something similar). In the agenda, the cursor stars out on the date line for TODAY. - Carsten