summaryrefslogtreecommitdiff
path: root/doc/emacs/text.texi
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-03-22 23:36:24 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-03-22 23:36:24 +0100
commit40def769fa9007f0a8da3f9e05063575c9a06be6 (patch)
treea06482c1f06614498c0498cfbf6dda30d554eeca /doc/emacs/text.texi
parent5fc84e0fb3a121ae45580e1ecd5731f5255407fc (diff)
downloademacs-40def769fa9007f0a8da3f9e05063575c9a06be6.tar.gz
Document outline-default-state
* doc/emacs/text.texi (Outline Visibility): Mention outline-default-state.
Diffstat (limited to 'doc/emacs/text.texi')
-rw-r--r--doc/emacs/text.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index 9f152f1cc14..fa8eaf09245 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -1259,6 +1259,17 @@ and related functions treat hidden text, @pxref{Query Replace}.)
You can also automatically make text visible as you navigate in it by
using Reveal mode (@kbd{M-x reveal-mode}), a buffer-local minor mode.
+@vindex outline-default-state
+ The @code{outline-default-state} variable controls what headings
+will be visible after Outline mode is turned on. If non-@code{nil},
+some headings are initially outlined. If equal to a number, show only
+headings up to and including the corresponding level. If equal to
+@code{outline-show-all}, all text of buffer is shown. If equal to
+@code{outline-show-only-headings}, show only headings, whatever their
+level is. If equal to a lambda function or function name, this
+function is expected to toggle headings visibility, and will be called
+without arguments after the mode is enabled.
+
@node Outline Views
@subsection Viewing One Outline in Multiple Views