* [Feature request] Could Org-mode set 'outline-promotion-headings'?
@ 2013-03-31 13:01 Thorsten Jolitz
2013-03-31 16:24 ` Nick Dokos
0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Jolitz @ 2013-03-31 13:01 UTC (permalink / raw)
To: emacs-orgmode
Hi List,
'outline-promotion-headings' is a variable defined in Carsten Dominik's
'outline-magic.el' library (and is thus part of my 'outshine.el' which
merges 'outline-magic').
When I wrote 'navi-mode.el' (see https://github.com/tj64/navi and
http://orgmode.org/worg/org-tutorials/index.html) I tried to make it
dependent mostly on this variable, so I guess I could make navi-mode
work with Org-mode files too (not only with buffers where
outline-minor-mode is acitvated with outshine extensions) if Org-mode
would set this variable:
,------------------------------------------------------------------------
| outline-promotion-headings is a variable defined in `outshine.el'.
| Its value is shown below.
|
| Automatically becomes buffer-local when set.
|
| Documentation:
| A sorted list of headings used for promotion/demotion commands.
| Set this to a list of headings as they are matched by `outline-regexp',
| top-level heading first. If a mode or document needs several sets of
| outline headings (for example numbered and unnumbered sections), list
| them set by set, separated by a nil element. See the example for
| `texinfo-mode' in the file commentary.
|
| For more information check the manuals.
|
|
|
| Value:
| ((";; * " . 1)
| (";; ** " . 2)
| (";; *** " . 3)
| (";; **** " . 4)
| (";; ***** " . 5)
| (";; ****** " . 6)
| (";; ******* " . 7)
| (";; ******** " . 8))
|
| Local in buffer `xyz.el'; global value is nil
`------------------------------------------------------------------------
I case of Org-mode, there would of course be no ';;' in the values, i.e. just
,-----------
| ("* " . 1)
`-----------
instead of
,--------------
| (";; * " . 1)
`--------------
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Feature request] Could Org-mode set 'outline-promotion-headings'?
2013-03-31 13:01 [Feature request] Could Org-mode set 'outline-promotion-headings'? Thorsten Jolitz
@ 2013-03-31 16:24 ` Nick Dokos
2013-03-31 18:24 ` Thorsten Jolitz
0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2013-03-31 16:24 UTC (permalink / raw)
To: Thorsten Jolitz; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 708 bytes --]
On Sun, Mar 31, 2013 at 9:01 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
>
> 'outline-promotion-headings' is a variable defined in Carsten Dominik's
> 'outline-magic.el' library (and is thus part of my 'outshine.el' which
> merges 'outline-magic').
>
> When I wrote 'navi-mode.el' (see https://github.com/tj64/navi and
> http://orgmode.org/worg/org-tutorials/index.html) I tried to make it
> dependent mostly on this variable, so I guess I could make navi-mode
> work with Org-mode files too (not only with buffers where
> outline-minor-mode is acitvated with outshine extensions) if Org-mode
> would set this variable:
>
>
Can't you set it in a hook? I'd guess org-mode-hook would be about right.
Nick
[-- Attachment #2: Type: text/html, Size: 1354 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Feature request] Could Org-mode set 'outline-promotion-headings'?
2013-03-31 16:24 ` Nick Dokos
@ 2013-03-31 18:24 ` Thorsten Jolitz
0 siblings, 0 replies; 3+ messages in thread
From: Thorsten Jolitz @ 2013-03-31 18:24 UTC (permalink / raw)
To: emacs-orgmode
Nick Dokos <ndokos@gmail.com> writes:
> On Sun, Mar 31, 2013 at 9:01 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
>
>
> 'outline-promotion-headings' is a variable defined in Carsten Dominik's
> 'outline-magic.el' library (and is thus part of my 'outshine.el' which
> merges 'outline-magic').
>
> When I wrote 'navi-mode.el' (see https://github.com/tj64/navi and
> http://orgmode.org/worg/org-tutorials/index.html) I tried to make it
> dependent mostly on this variable, so I guess I could make navi-mode
> work with Org-mode files too (not only with buffers where
> outline-minor-mode is acitvated with outshine extensions) if Org-mode
> would set this variable:
>
>
>
> Can't you set it in a hook? I'd guess org-mode-hook would be about right.
yes, I can do that in navi-mode itself, thanks for the tip.
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-31 18:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-31 13:01 [Feature request] Could Org-mode set 'outline-promotion-headings'? Thorsten Jolitz
2013-03-31 16:24 ` Nick Dokos
2013-03-31 18:24 ` Thorsten Jolitz
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).