Emacs Outline Mode Cheat Sheet

Entering outline mode

To enter outline mode:

M-x outline-mode

Or, add this line to the beginning of the file (can be in a comment):

-*- mode: outline -*-

Format of outlines

Outlines indicate headings by using stars ('*') at the beginning of a line. Use one star for a top-level heading, two stars for a second-level heading and so on. Example:

* 1. Heading Level 1
** A. Heading Level 2
** B. Heading Level 2
*** (1) Heading Level 3
* 2. Heading Level 1

There are no "fields" for automatic numbering.

Movement

The following commands are for movement:

KeystrokeLISP commandDescription
C-c C-noutline-next-visible-headingMoves point to the next visible heading line
C-c C-poutline-previous-visible-headingMoves point to previous visible heading line
C-c C-foutline-forward-same-levelMoves point to next visible heading line at same level
C-c C-boutline-backward-same-levelMoves point to previous visible heading line at same level
C-c C-uoutline-up-headingMoves point up to previous visible super-heading line

Expanding/collapsing

The following commands are for expanding or collapsing the outline:

KeystrokeLISP commandDescription
C-c C-thide-bodyHides all body lines in the buffer
C-c C-ashow-allShows all lines in the buffer
C-c C-dhide-subtreeHides everything under this heading
C-c C-sshow-subtreeShows everything under this heading, including all bodies
C-c C-lhide-leavesHides the bodies of the current heading and all its sub-headings
C-c C-kshow-branchesShows all the sub-headings under current heading
C-c C-ishow-childrenShows all immediate sub-headings under current heading
C-c C-chide-entryHides body of current heading
C-c C-eshow-entryShows body of current heading
C-c C-qhide-sublevelsHides everything except the top n levels of headings
C-c C-ohide-otherHides everything except the current heading and its super-headings