Variable: magit-create-buffer-hook

magit-create-buffer-hook is a customizable variable defined in magit-mode.el.

Value

nil

Documentation

Normal hook run while creating a new magit-mode buffer.

Runs before the buffer is populated with sections. Also see magit-post-create-buffer-hook.

This variable was added, or its default value changed, in magit version 2.90.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-mode.el
(defcustom magit-create-buffer-hook nil
  "Normal hook run while creating a new `magit-mode' buffer.
Runs before the buffer is populated with sections.  Also see
`magit-post-create-buffer-hook'."
  :package-version '(magit . "2.90.0")
  :group 'magit-refresh
  :type 'hook)