Next: Symbol Completion, Previous: Documentation, Up: Programs
Hideshow mode is a buffer-local minor mode that allows you to selectively display portions of a program, which are referred to as blocks. Type M-x hs-minor-mode to toggle this minor mode (see Minor Modes).
When you use Hideshow mode to hide a block, the block disappears from the screen, to be replaced by an ellipsis (three periods in a row). Just what constitutes a block depends on the major mode. In C mode and related modes, blocks are delimited by braces, while in Lisp mode they are delimited by parentheses. Multi-line comments also count as blocks.
Hideshow mode provides the following commands:
hs-hide-block).
hs-show-block).
hs-toggle-hiding).
hs-mouse-toggle-hiding).
hs-hide-all).
hs-show-all).
hs-hide-level).
These variables can be used to customize Hideshow mode:
hs-hide-comments-when-hiding-allnil, C-c @ C-M-h (hs-hide-all) hides
comments too.
hs-isearch-opencode (unhide only code
blocks), comment (unhide only comments), t (unhide both
code blocks and comments), or nil (unhide neither code blocks
nor comments). The default value is code.