hs-minor-mode is a builtin minor mode to selectively hide or show (fold/unfold) parts of code.

hs-minor-mode is just one code folding mode, other notable modes with folding capacity are:

  • outline
  • folding
  • evil-mode
  • yafolding
  • origami
  • fold-this