Variable: magit-revision-wash-message-hook

magit-revision-wash-message-hook is a customizable variable defined in magit-diff.el.

Value

(magit-highlight-squash-markers
 magit-highlight-bracket-keywords)

Documentation

Functions used to highlight parts of a commit message.

These functions are called in order, in a buffer narrowed to the commit message. They should set text properties as they see fit, usually just font-lock-face. Before each function is called, point is at the beginning of the narrowed region of the buffer.

See also the related magit-log-wash-summary-hook. You likely want to use the same functions for both hooks.

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

Aliases

magit-wash-message-hook (obsolete since Magit 4.3.0)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defcustom magit-revision-wash-message-hook
  (list #'magit-highlight-squash-markers
        #'magit-highlight-bracket-keywords)
  "Functions used to highlight parts of a commit message.

These functions are called in order, in a buffer narrowed to the commit
message.  They should set text properties as they see fit, usually just
`font-lock-face'.  Before each function is called, point is at the
beginning of the narrowed region of the buffer.

See also the related `magit-log-wash-summary-hook'.  You likely want to
use the same functions for both hooks."
  :package-version '(magit . "4.3.0")
  :group 'magit-log
  :type 'hook
  :options (list #'magit-highlight-squash-markers
                 #'magit-highlight-bracket-keywords))