Minor mode for editing outlines with selective display. Headings are lines which start with asterisks: one for major headings, two for sub-headings, etc. Lines not starting with asterisks are body lines.
Body text or sub-headings under a heading can be made temporarily invisible, or visible again. Invisible lines are attached to the end of the heading, so they move with it, if the line is killed and yanked back. A heading with text hidden under it is marked with an ellipsis (...).
outline-next-visible-heading
move by visible headings
outline-previous-visible-heading
outline-forward-same-level
similar but skip sub-headings
outline-backward-same-level
outline-up-heading move from
sub heading to heading
hide-body
make all text invisible (not headings).
show-all
make everything in buffer visible.
outline-minor-mode
leave outline mode.
The remaining commands are used when point is on a heading line. They apply to some of the body or sub-headings of that heading.
hide-subtree
make body and sub-headings invisible.
show-subtree
make body and sub-headings visible.
show-children
make direct sub-headings visible. No effect on
body, or sub-headings 2 or more levels down. With arg N, affects
sub-headings N levels down.
hide-entry
make immediately following body invisible.
show-entry
make it visible.
hide-leaves
make body under heading and under its sub-headings
invisible. The sub-headings remain visible.
show-branches
make all sub-headings at all levels visible.
User Option: outline-prefix-char
The prefix char (C-c C-o) used to activate the outline commands. You most likely want to set this to something shorter.
In LaTeX mode the default headings are the sectioning commands, and
as top level headings `\documentstyle', `\appendix',
TeX-trailer-start
, and TeX-header-end
. You can also
define extra headings at any level, by setting the variable
TeX-outline-extra
.
User Option: TeX-outline-extra
List of extra TeX outline levels.
Each element is a list with two entries. The first entry is the regular
expression matching a header, and the second is the level of the header.
See LaTeX-section-list
for existing header levels.
You can use outlining in other modes as well, the function to do this is
outline-minor-mode
.
Command: outline-minor-mode prefix
Enters outline minor mode. With prefix: no-nil: turn outline mode on. nil: turn outline mode off.
User Option: outline-regexp
Regular expression matching header lines. When using outline-minor mode outside AUC TeX, this is per default set to lines beginning with one or more stars.
User Option: outline-level-function
Function calculating the level of a header. Outside AUC TeX, this is
per default the length of the string matched by outline-regexp
.