* Display parent in agenda mode
@ 2009-08-31 18:36 Andrew M. Nuxoll
2009-09-01 4:38 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Andrew M. Nuxoll @ 2009-08-31 18:36 UTC (permalink / raw)
To: Emacs-orgmode
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.)
Thanks,
:AMN:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Display parent in agenda mode
2009-08-31 18:36 Display parent in agenda mode Andrew M. Nuxoll
@ 2009-09-01 4:38 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-09-01 4:38 UTC (permalink / raw)
To: Andrew M. Nuxoll; +Cc: Emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-01 4:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-31 18:36 Display parent in agenda mode Andrew M. Nuxoll
2009-09-01 4:38 ` Carsten Dominik
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.