14 lines
582 B
Plaintext
14 lines
582 B
Plaintext
<p>Doom Emacs has
|
|
<a href="https://github.com/hlissner/doom-emacs/blob/develop/modules/editor/fold/README.org">editor/fold</a>
|
|
module which makes folding code simple</p>
|
|
|
|
<p>Steps:</p>
|
|
|
|
<ul>
|
|
<li>Move cursor to the code block opening</li>
|
|
<li><code class="language-plaintext highlighter-rouge">M-x +fold/toggle</code> or <code class="language-plaintext highlighter-rouge">C-c C-f C-f</code></li>
|
|
</ul>
|
|
|
|
<p>Demo (folding a large hash in <code class="language-plaintext highlighter-rouge">ruby</code>):</p>
|
|
|
|
<p><img alt="fold ruby code" src="https://i.imgur.com/nMMKcPi.png" /></p> |