emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: viewing number of nested headlines
Date: Tue, 05 Feb 2013 14:25:11 +0100	[thread overview]
Message-ID: <861ucuriyw.fsf@somewhere.org> (raw)
In-Reply-To: 87y5f3vycq.fsf@bzg.ath.cx

Bastien,

Bastien wrote:
> 42 147 <aeuster-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> Is there a way to see how many nested headlines there are within a
>> higher-level headline (not necessarily top-level)?
>
> This is a nice feature of VimOrganizer but no, there is no way to do
> this with Org for now.

IIUC, this should (almost) answer the OP's request, by displaying the outline
path in mode line:

#+begin_src emacs-lisp
  (add-hook 'org-mode-hook
            (lambda() (add-to-list 'mode-line-format
                                   '(:eval (org-propertize
                                            (org-display-outline-path nil t " / " t)
                                           'face 'mode-line-emphasis
                                           'help-echo "Outline path")) t)))
#+end_src

A variation of it could directly count the number of levels...

Best regards,
  Seb

-- 
Sebastien Vauban

  parent reply	other threads:[~2013-02-05 13:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-04 23:59 viewing number of nested headlines 42 147
2013-02-05 10:39 ` Bastien
2013-02-05 12:43   ` François Pinard
2013-02-05 18:34     ` Samuel Wales
2013-02-05 13:25   ` Sebastien Vauban [this message]
2013-02-05 14:08     ` François Pinard
2013-02-05 20:17   ` 42 147
2013-02-05 21:03     ` Bastien
2013-02-05 22:07       ` 42 147
2013-02-06 20:50         ` Achim Gratz

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=861ucuriyw.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /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 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).