Variable: vc-deduce-backend-nonvc-modes
vc-deduce-backend-nonvc-modes is a customizable variable defined in
vc.el.gz.
Value
(dired-mode shell-mode eshell-mode compilation-mode)
Documentation
List of modes not supported by VC where backend should be deduced.
In these modes the backend is deduced based on default-directory.
If the value is t, the backend is deduced in all modes.
This variable was added, or its default value changed, in Emacs 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
(defcustom vc-deduce-backend-nonvc-modes
;; Maybe we could even use comint-mode rather than shell-mode?
'(dired-mode shell-mode eshell-mode compilation-mode)
"List of modes not supported by VC where backend should be deduced.
In these modes the backend is deduced based on `default-directory'.
If the value is t, the backend is deduced in all modes."
:type '(choice (const :tag "None" nil)
(repeat symbol)
(const :tag "All" t))
:version "30.1")