Function: turn-on-diff-hl-mode
turn-on-diff-hl-mode is a natively compiled function defined in
diff-hl.el.
Signature
(turn-on-diff-hl-mode)
Documentation
Turn on diff-hl-mode(var)/diff-hl-mode(fun) or diff-hl-dir-mode(var)/diff-hl-dir-mode(fun) in a buffer if appropriate.
Source Code
;; Defined in /nix/store/cfz56rl3lp066226i0bmmgiicls3gcq7-emacs-packages-deps/share/emacs/site-lisp/elpa/diff-hl-20261001.135/diff-hl.el
;;;###autoload
(defun turn-on-diff-hl-mode ()
"Turn on `diff-hl-mode' or `diff-hl-dir-mode' in a buffer if appropriate."
(let ((file (diff-hl--buffer-file-name)))
(cond
(file
(unless (and diff-hl-disable-on-remote
(file-remote-p file))
(diff-hl-mode 1)))
((eq major-mode 'vc-dir-mode)
(diff-hl-dir-mode 1)))))