all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Andrew M. Nuxoll" <nuxoll@up.edu>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Display parent in agenda mode
Date: Tue, 1 Sep 2009 06:38:34 +0200	[thread overview]
Message-ID: <96F0A983-25FF-41D9-9571-13E751A0DDC6@gmail.com> (raw)
In-Reply-To: <4A9C1814.2090107@up.edu>


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

      reply	other threads:[~2009-09-01  4:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-31 18:36 Display parent in agenda mode Andrew M. Nuxoll
2009-09-01  4:38 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96F0A983-25FF-41D9-9571-13E751A0DDC6@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=nuxoll@up.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.