Variable: magit-region-highlight-hook

magit-region-highlight-hook is a customizable variable defined in magit-mode.el.

Value

(magit-diff-update-hunk-region)

Documentation

Functions used to highlight the region.

Each function is run with the current section as only argument until one of them returns non-nil. If all functions return nil, then fall back to regular region highlighting.

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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-mode.el
(defcustom magit-region-highlight-hook
  '(magit-diff-update-hunk-region) ; from magit-diff.el
  "Functions used to highlight the region.

Each function is run with the current section as only argument
until one of them returns non-nil.  If all functions return nil,
then fall back to regular region highlighting."
  :package-version '(magit . "2.1.0")
  :group 'magit-refresh
  :type 'hook
  :options '(magit-diff-update-hunk-region))