UP | HOME
RSS | Source | License

Org Mode in Source File

Table of Contents

outline0.png

outline1.png

outline2.png

This nice package outshine brings the look and feel of Org Mode into any major mode as long as there is comment syntax defined.

1 How Does It Work

1.1 Enable

M-x outline-minor-mode

1.2 Headings

Instead of * in Org Mode, use whatever comment syntax defined in the major mode.

In emacs-lisp-mode, ;;; is top level heading, ;;;; the second, and so on.

1.3 Folding

Since outshine is no more than a extension of outline-minor-mode, all the outline-minor-mode commands still apply. To name a few:

outline-show-all
outline-hide-body
outline-toggle-children

outshine binds C-M-i to outshine-cycle-buffer, I found it convenient.

Written by Yuan Fu <casouri@gmail.com>

First Published on 2018-10-07 Sun 00:00

Last modified on 2018-11-11 Sun 19:22