http://www.perlmonks.org?node_id=463345


in reply to Re: Cross-platform development: editors
in thread Cross-platform development: editors

There's a more standard "folding" mode: outline-mode (and luckily: outline-minor-mode). It takes a bit of setup, but I got it working pretty well using the advice found at: emacswiki.org

Important steps (the Wiki explains in detail):