From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Display parent in agenda mode Date: Tue, 1 Sep 2009 06:38:34 +0200 Message-ID: <96F0A983-25FF-41D9-9571-13E751A0DDC6@gmail.com> References: <4A9C1814.2090107@up.edu> 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 1MiL8k-0003cg-V3 for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 00:38:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiL8g-0003bO-J3 for Emacs-orgmode@gnu.org; Tue, 01 Sep 2009 00:38:42 -0400 Received: from [199.232.76.173] (port=50555 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiL8g-0003bL-B4 for Emacs-orgmode@gnu.org; Tue, 01 Sep 2009 00:38:38 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:51225) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiL8f-0001Hw-UP for Emacs-orgmode@gnu.org; Tue, 01 Sep 2009 00:38:38 -0400 Received: by ewy7 with SMTP id 7so58140ewy.31 for ; Mon, 31 Aug 2009 21:38:37 -0700 (PDT) In-Reply-To: <4A9C1814.2090107@up.edu> 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: "Andrew M. Nuxoll" Cc: Emacs-orgmode@gnu.org On Aug 31, 2009, at 8:36 PM, Andrew M. Nuxoll wrote: > When I'm viewing an agenda (using my custom agenda command), I like > to hit 'f' to put it in follow mode so I can see the context of the > entry I'm viewing. However, in many cases there are enough entries > under a given heading that the heading has scrolled off the screen. > Is there a way to have follow mode condense the view it shows to > only show the parents and children but not the siblings? Otherwise > I have to tab over to the .org file and page up which gets old > pretty fast. > > (I did read the manual but didn't see a solution. I'm sorry if I > missed it.) Hi Andrew, no, there i nothing in Org to do this by default. However, you can hack it like this: (defun my-compact-follow () (ignore-errors (save-excursion (while (org-up-heading-safe)) (hide-subtree))) (let ((org-show-siblings nil) (org-show-hierarchy-above t)) (org-reveal)) (save-excursion (org-back-to-heading t) (show-children))) (add-hook 'org-agenda-after-show-hook 'my-compact-follow) Hope this helps - Carsten > > Thanks, > :AMN: > > > > _______________________________________________ > 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