Go to the previous, next section.

Folding editing

With these commands you can make parts of the text temporarily invisible to make it easier to see the overall structure of your text.

When folding a region all the lines but the first will be invisible. The first line of the region will still be visible with an ellipsis at the end.

See section 'Outline Mode' in The Emacs Editor.

C-c C-f C-r
The region between point and mark will be folded. (sgml-fold-region)

C-c C-f C-e
The region between the start and end of the current element will be folded. (sgml-fold-element)

C-c C-f C-s
Fold all the sub elements of the current element. (sgml-fold-subelement)

C-c C-s
Unfold the current line, assuming it is the first line of a folded region. (sgml-unfold-line)

C-c C-u C-e
Make all lines in current element visible. (sgml-unfold-element)

C-c C-u C-a
Make all lines in current buffer visible. (sgml-unfold-all)

C-c C-f C-x
Unfold current element and then fold the subelements. If the current element is folded this expands what is visible. (sgml-expand-element)

Go to the previous, next section.