emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] viewing number of nested headlines


From: Sebastien Vauban
Subject: Re: [O] viewing number of nested headlines
Date: Tue, 05 Feb 2013 14:25:11 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.92 (windows-nt)

Bastien,

Bastien wrote:
> 42 147 <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]