Variable: evil-fold-list

evil-fold-list is a variable defined in evil-vars.el.

Value

Large value
(((vdiff-mode)
  :open-all vdiff-open-all-folds :close-all vdiff-close-all-folds :toggle
  #[0 "\300\301!\207"
      [call-interactively vdiff-toggle-fold]
      2]
  :open
  #[0 "\300\301!\207"
      [call-interactively vdiff-open-fold]
      2]
  :open-rec
  #[0 "\300\301!\207"
      [call-interactively vdiff-open-fold]
      2]
  :close
  #[0 "\300\301!\207"
      [call-interactively vdiff-close-fold]
      2])
 ((vdiff-3way-mode)
  :open-all vdiff-open-all-folds :close-all vdiff-close-all-folds :toggle
  #[0 "\300\301!\207"
      [call-interactively vdiff-toggle-fold]
      2]
  :open
  #[0 "\300\301!\207"
      [call-interactively vdiff-open-fold]
      2]
  :open-rec
  #[0 "\300\301!\207"
      [call-interactively vdiff-open-fold]
      2]
  :close
  #[0 "\300\301!\207"
      [call-interactively vdiff-close-fold]
      2])
 ((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)
 ((hide-ifdef-mode)
  :open-all show-ifdefs :close-all hide-ifdefs :toggle nil :open show-ifdef-block :open-rec nil :close hide-ifdef-block)
 ((outline-mode outline-minor-mode org-mode markdown-mode)
  :open-all show-all :close-all
  #[0 "\300\301!\207"
      [hide-sublevels 1]
      2]
  :toggle outline-toggle-children :open
  #[0 "\300 \210\301 \207"
      [show-entry show-children]
      1]
  :open-rec show-subtree :close hide-subtree)
 ((origami-mode)
  :open-all
  #[0 "\300p!\207"
      [origami-open-all-nodes]
      2]
  :close-all
  #[0 "\300p!\207"
      [origami-close-all-nodes]
      2]
  :toggle
  #[0 "\300p`\"\207"
      [origami-toggle-node]
      3]
  :open
  #[0 "\300p`\"\207"
      [origami-open-node]
      3]
  :open-rec
  #[0 "\300p`\"\207"
      [origami-open-node-recursively]
      3]
  :close
  #[0 "\300p`\"\207"
      [origami-close-node]
      3]))

Documentation

Actions to be performed for various folding operations.

The value should be a list of fold handlers, were a fold handler has the format:

  ((MODES) PROPERTIES)

MODES acts as a predicate, containing the symbols of all major or minor modes for which the handler should match. For example:

  '((outline-minor-mode org-mode) ...)

would match for either outline-minor-mode or org-mode, even though the former is a minor mode and the latter is a major.

PROPERTIES specifies possible folding actions and the functions to be applied in the event of a match on one (or more) of the MODES; the supported properties are:

  - :open-all
    Open all folds.
  - :close-all
    Close all folds.
  - :toggle
    Toggle the display of the fold at point.
  - :open
    Open the fold at point.
  - :open-rec
    Open the fold at point recursively.
  - :close
    Close the fold at point.

Each value must be a function. A value of nil will cause the action to be ignored for that respective handler. For example:

  `((org-mode)
     :close-all nil
     :open ,(lambda ()
                    (show-entry)
                    (show-children))
     :close hide-subtree)

would ignore :close-all actions and invoke the provided functions on
:open or :close.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-vars.el
(defvar evil-fold-list
  `(((vdiff-mode)
     :open-all   vdiff-open-all-folds
     :close-all  vdiff-close-all-folds
     :toggle     ,(lambda () (call-interactively 'vdiff-toggle-fold))
     :open       ,(lambda () (call-interactively 'vdiff-open-fold))
     :open-rec   ,(lambda () (call-interactively 'vdiff-open-fold))
     :close      ,(lambda () (call-interactively 'vdiff-close-fold)))
    ((vdiff-3way-mode)
     :open-all   vdiff-open-all-folds
     :close-all  vdiff-close-all-folds
     :toggle     ,(lambda () (call-interactively 'vdiff-toggle-fold))
     :open       ,(lambda () (call-interactively 'vdiff-open-fold))
     :open-rec   ,(lambda () (call-interactively 'vdiff-open-fold))
     :close      ,(lambda () (call-interactively 'vdiff-close-fold)))
    ((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)
    ((hide-ifdef-mode)
     :open-all   show-ifdefs
     :close-all  hide-ifdefs
     :toggle     nil
     :open       show-ifdef-block
     :open-rec   nil
     :close      hide-ifdef-block)
    ((outline-mode
      outline-minor-mode
      org-mode
      markdown-mode)
     :open-all   show-all
     :close-all  ,(lambda ()
                    (with-no-warnings (hide-sublevels 1)))
     :toggle     outline-toggle-children
     :open       ,(lambda ()
                    (with-no-warnings
                      (show-entry)
                      (show-children)))
     :open-rec   show-subtree
     :close      hide-subtree)
    ((origami-mode)
     :open-all   ,(lambda () (origami-open-all-nodes (current-buffer)))
     :close-all  ,(lambda () (origami-close-all-nodes (current-buffer)))
     :toggle     ,(lambda () (origami-toggle-node (current-buffer) (point)))
     :open       ,(lambda () (origami-open-node (current-buffer) (point)))
     :open-rec   ,(lambda () (origami-open-node-recursively (current-buffer) (point)))
     :close      ,(lambda () (origami-close-node (current-buffer) (point)))))
  "Actions to be performed for various folding operations.

The value should be a list of fold handlers, were a fold handler has
the format:

  ((MODES) PROPERTIES)

MODES acts as a predicate, containing the symbols of all major or
minor modes for which the handler should match.  For example:

  \\='((outline-minor-mode org-mode) ...)

would match for either outline-minor-mode or org-mode, even though the
former is a minor mode and the latter is a major.

PROPERTIES specifies possible folding actions and the functions to be
applied in the event of a match on one (or more) of the MODES; the
supported properties are:

  - `:open-all'
    Open all folds.
  - `:close-all'
    Close all folds.
  - `:toggle'
    Toggle the display of the fold at point.
  - `:open'
    Open the fold at point.
  - `:open-rec'
    Open the fold at point recursively.
  - `:close'
    Close the fold at point.

Each value must be a function.  A value of `nil' will cause the action
to be ignored for that respective handler.  For example:

  `((org-mode)
     :close-all  nil
     :open       ,(lambda ()
                    (show-entry)
                    (show-children))
     :close      hide-subtree)

would ignore `:close-all' actions and invoke the provided functions on
`:open' or `:close'.")