Doom Emacs: How to fold code blocks
Published on Nov 22, 2021, by Junji Zhi
Doom Emacs has editor/fold module which makes folding code simple
Steps:
- Move cursor to the code block opening
M-x +fold/toggle
orC-c C-f C-f
Demo (folding a large hash in ruby
):