Skip to content

Add code folding to the docs #1380

@nettoyoussef

Description

@nettoyoussef

Issue type

  • Enhancement request

Environment

Not relevant.

Problem

Currently there is no information about folding or evil-fold-list in the docs (e.g, here or here).

Per this reddit thread it is possible to select a backend by editing evil-fold-list, such as this example:

(setq evil-fold-list
  `(((hs-minor-mode)
     :open-all   hs-show-all
     :close-all  hs-hide-all
     :toggle     hs-toggle-hiding
     :open       hs-show-block
     :open-rec   nil
     :close      hs-hide-block)
   )
)

or to add a hook to enable folding with a particular package (one of vdiff-mode, vdiff-3way-mode, hs-minor-mode, hide-ifdef-mode, outline-mode, origami-mode) in a particular mode:

(use-package evil
  :ensure t
  :hook
  ('prog-mode . #'hs-minor-mode)
  :config
  (evil-mode 1)
)

It would be nice to have this in the documentation somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions