Variable: magit-section-initial-visibility-alist
magit-section-initial-visibility-alist is a customizable variable
defined in magit-section.el.
Value
((stashes . hide))
Documentation
Alist controlling the initial visibility of sections.
Each element maps a section type or lineage to the initial
visibility state for such sections. The state has to be one of
show or hide, or a function that returns one of these symbols.
A function is called with the section as the only argument.
Use the command magit-describe-section to determine a section's
lineage or type. The vector in the output is the section lineage
and the type is the first element of that vector. Wildcards can
be used, see magit-section-match.
Currently this option is only used to override hardcoded defaults, but in the future it will also be used set the defaults.
An entry whose key is magit-status-initial-section specifies
the visibility of the section magit-status-goto-initial-section
jumps to. This does not only override defaults, but also other
entries of this alist.
This variable was added, or its default value changed, in magit-section version 2.12.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defcustom magit-section-initial-visibility-alist
'((stashes . hide))
"Alist controlling the initial visibility of sections.
Each element maps a section type or lineage to the initial
visibility state for such sections. The state has to be one of
`show' or `hide', or a function that returns one of these symbols.
A function is called with the section as the only argument.
Use the command `magit-describe-section' to determine a section's
lineage or type. The vector in the output is the section lineage
and the type is the first element of that vector. Wildcards can
be used, see `magit-section-match'.
Currently this option is only used to override hardcoded defaults,
but in the future it will also be used set the defaults.
An entry whose key is `magit-status-initial-section' specifies
the visibility of the section `magit-status-goto-initial-section'
jumps to. This does not only override defaults, but also other
entries of this alist."
:package-version '(magit-section . "2.12.0")
:group 'magit-section
:type '(alist :key-type (sexp :tag "Section type/lineage")
:value-type (choice (const hide)
(const show)
function)))