From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: show number of sub headers in top level header (alternative to statistics cookie?) Date: Wed, 12 Aug 2015 17:15:28 -0500 Message-ID: <87h9o48873.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPeJ2-0002Db-D2 for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 18:15:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPeIy-0002aQ-Jo for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 18:15:32 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:42340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPeIy-0002Zb-47 for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 18:15:28 -0400 In-Reply-To: (Xebar Saram's message of "Fri, 7 Aug 2015 11:09:23 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Xebar Saram Cc: org mode Xebar Saram 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