Whats the best way to achieve something like code folding, or the type of cycling that org-mode uses. What would be the best solution in elisp to create this type of behavi
hide-show mode (hs-minor-mode) with default keybinding C-c @ C-M-h to trigger the folding (hs-hide-all)
hs-minor-mode
C-c @ C-M-h
hs-hide-all