Variable: org-cycle-hook

org-cycle-hook is a customizable variable defined in org-cycle.el.gz.

Value

(org-inlinetask-hide-tasks
 org-cycle-hide-archived-subtrees
 org-cycle-show-empty-lines
 org-cycle-optimize-window-after-visibility-change
 org-cycle-display-inline-images)

Documentation

Hook that is run after org-cycle has changed the buffer visibility.

The function(s) in this hook must accept a single argument which indicates the new state that was set by the most recent org-cycle command. The argument is a symbol. After a global state change, it can have the values overview, contents, or all. After a local state change, it can have the values folded, children, or subtree.

This variable was added, or its default value changed, in Org version
9.4.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-cycle.el.gz
(defcustom org-cycle-hook '(org-cycle-hide-archived-subtrees
                            org-cycle-show-empty-lines
                            org-cycle-optimize-window-after-visibility-change
                            org-cycle-display-inline-images)
  "Hook that is run after `org-cycle' has changed the buffer visibility.
The function(s) in this hook must accept a single argument which indicates
the new state that was set by the most recent `org-cycle' command.  The
argument is a symbol.  After a global state change, it can have the values
`overview', `contents', or `all'.  After a local state change, it can have
the values `folded', `children', or `subtree'."
  :group 'org-cycle
  :package-version '(Org . "9.4")
  :type 'hook)