Variable: major-mode-remap-alist
major-mode-remap-alist is a customizable variable defined in
files.el.gz.
Value
((doctex-mode . docTeX-mode)
(latex-mode . LaTeX-mode)
(texinfo-mode . Texinfo-mode)
(plain-tex-mode . plain-TeX-mode)
(tex-mode . TeX-tex-mode))
Documentation
Alist mapping file-specified mode to actual mode.
Every entry is of the form (MODE . FUNCTION) which means that in order
to activate the major mode MODE (specified via something like
auto-mode-alist, file-local variables, ...) we should actually call
FUNCTION instead.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom major-mode-remap-alist nil
"Alist mapping file-specified mode to actual mode.
Every entry is of the form (MODE . FUNCTION) which means that in order
to activate the major mode MODE (specified via something like
`auto-mode-alist', file-local variables, ...) we should actually call
FUNCTION instead."
:type '(alist (symbol) (function)))