Variable: git-commit-major-mode
git-commit-major-mode is a customizable variable defined in
git-commit.el.
Value
text-mode
Documentation
Major mode used to edit Git commit messages.
The major mode configured here is turned on by the minor mode
git-commit-mode(var)/git-commit-mode(fun).
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-commit.el
(defcustom git-commit-major-mode #'text-mode
"Major mode used to edit Git commit messages.
The major mode configured here is turned on by the minor mode
`git-commit-mode'."
:group 'git-commit
:type '(radio (function-item text-mode)
(function-item markdown-mode)
(function-item org-mode)
(function-item fundamental-mode)
(function-item log-edit-mode)
(function-item git-commit-elisp-text-mode)
(function :tag "Another mode")
(const :tag "No major mode")))