Variable: diff-minor-mode-hook
diff-minor-mode-hook is a customizable variable defined in
diff-mode.el.gz.
Value
nil
Documentation
Hook run after entering or leaving diff-minor-mode(var)/diff-minor-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
;;;###autoload
(define-minor-mode diff-minor-mode
"Toggle Diff minor mode.
\\{diff-minor-mode-map}"
:group 'diff-mode :lighter " Diff"
;; FIXME: setup font-lock
(when diff--track-changes (track-changes-unregister diff--track-changes))
(remove-hook 'write-contents-functions #'diff-write-contents-hooks t)
(when diff-minor-mode
(if (not diff-update-on-the-fly)
(add-hook 'write-contents-functions #'diff-write-contents-hooks nil t)
(unless diff--track-changes
(setq diff--track-changes
(track-changes-register #'diff--track-changes-signal
:nobefore t))))))