Variable: org-yank-folded-subtrees

org-yank-folded-subtrees is a customizable variable defined in org.el.gz.

Value

t

Documentation

Non-nil means when yanking subtrees, fold them.

If the kill is a single subtree, or a sequence of subtrees, i.e. if it starts with a heading and all other headings in it are either children or siblings, then fold all the subtrees. However, do this only if no text after the yank would be swallowed into a folded tree by this action.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defcustom org-yank-folded-subtrees t
  "Non-nil means when yanking subtrees, fold them.
If the kill is a single subtree, or a sequence of subtrees, i.e. if
it starts with a heading and all other headings in it are either children
or siblings, then fold all the subtrees.  However, do this only if no
text after the yank would be swallowed into a folded tree by this action."
  :group 'org-edit-structure
  :type 'boolean)