* show number of sub headers in top level header (alternative to statistics cookie?) @ 2015-08-07 8:09 Xebar Saram 2015-08-07 13:49 ` John Kitchin 2015-08-12 22:15 ` Matt Lundin 0 siblings, 2 replies; 3+ messages in thread From: Xebar Saram @ 2015-08-07 8:09 UTC (permalink / raw) To: org mode [-- Attachment #1: Type: text/plain, Size: 171 bytes --] Hi I was wondering if there was an option in org to show number of sub headers in top level header. i know there is statistics cookies but that's not automatic? best Z [-- Attachment #2: Type: text/html, Size: 270 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: show number of sub headers in top level header (alternative to statistics cookie?) 2015-08-07 8:09 show number of sub headers in top level header (alternative to statistics cookie?) Xebar Saram @ 2015-08-07 13:49 ` John Kitchin 2015-08-12 22:15 ` Matt Lundin 1 sibling, 0 replies; 3+ messages in thread From: John Kitchin @ 2015-08-07 13:49 UTC (permalink / raw) To: Xebar Saram; +Cc: org mode nothing automatic that I know of. Xebar Saram writes: > Hi > > I was wondering if there was an option in org to show number of sub headers > in top level header. i know there is statistics cookies but that's not > automatic? > > best > > Z -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: show number of sub headers in top level header (alternative to statistics cookie?) 2015-08-07 8:09 show number of sub headers in top level header (alternative to statistics cookie?) Xebar Saram 2015-08-07 13:49 ` John Kitchin @ 2015-08-12 22:15 ` Matt Lundin 1 sibling, 0 replies; 3+ messages in thread From: Matt Lundin @ 2015-08-12 22:15 UTC (permalink / raw) To: Xebar Saram; +Cc: org mode Xebar Saram <zeltakc@gmail.com> writes: > I was wondering if there was an option in org to show number of sub > headers in top level header. i know there is statistics cookies but > that's not automatic? There are a few ways one could use statistic cookies to make this more "automatic." The first is to set: (setq org-provide-todo-statistics 'all-headlines) Also make sure that org-hierarchical-todo-statistics is set to t (the default). This will make sure that the statistics cookie counts all entries, not just todo keywords, so the second number in a cookie [3/18] will be the total number of subheadings. Org-mode already automatically updates cookies when changing a todo. But you could also update the cookies when changing a headline to ensure an up-to-date count: (add-hook 'org-insert-heading-hook 'org-update-parent-todo-statistics) Hope this helps, Matt ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-12 22:15 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-08-07 8:09 show number of sub headers in top level header (alternative to statistics cookie?) Xebar Saram 2015-08-07 13:49 ` John Kitchin 2015-08-12 22:15 ` Matt Lundin
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).