Variable: markdown-code-lang-modes
markdown-code-lang-modes is a customizable variable defined in
markdown-mode.el.
Value
(("ocaml" . tuareg-mode)
("elisp" . emacs-lisp-mode)
("ditaa" . artist-mode)
("asymptote" . asy-mode)
("dot" . fundamental-mode)
("sqlite" . sql-mode)
("calc" . fundamental-mode)
("C" . c-mode)
("cpp" . c++-mode)
("C++" . c++-mode)
("screen" . shell-script-mode)
("shell" . sh-mode)
("bash" . sh-mode))
Documentation
Alist mapping languages to their major mode.
The key is the language name, the value is the major mode. For
many languages this is simple, but for language where this is not
the case, this variable provides a way to simplify things on the
user side. For example, there is no ocaml-mode in Emacs, but the
mode to use is tuareg-mode.
This variable was added, or its default value changed, in markdown-mode version 2.3.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
;; This is based on `org-src-lang-modes' from org-src.el
(defcustom markdown-code-lang-modes
'(("ocaml" . tuareg-mode) ("elisp" . emacs-lisp-mode) ("ditaa" . artist-mode)
("asymptote" . asy-mode) ("dot" . fundamental-mode) ("sqlite" . sql-mode)
("calc" . fundamental-mode) ("C" . c-mode) ("cpp" . c++-mode)
("C++" . c++-mode) ("screen" . shell-script-mode) ("shell" . sh-mode)
("bash" . sh-mode))
"Alist mapping languages to their major mode.
The key is the language name, the value is the major mode. For
many languages this is simple, but for language where this is not
the case, this variable provides a way to simplify things on the
user side. For example, there is no ocaml-mode in Emacs, but the
mode to use is `tuareg-mode'."
:group 'markdown
:type '(repeat
(cons
(string "Language name")
(symbol "Major mode")))
:package-version '(markdown-mode . "2.3"))