Variable: org-src-lang-modes
org-src-lang-modes is a customizable variable defined in
org-src.el.gz.
Value
(("beamer" . LaTeX)
("latex" . LaTeX)
("C" . c)
("C++" . c++)
("asymptote" . asy)
("bash" . sh)
("beamer" . latex)
("calc" . fundamental)
("cpp" . c++)
("ditaa" . artist)
("desktop" . conf-desktop)
("dot" . fundamental)
("elisp" . emacs-lisp)
("ocaml" . tuareg)
("screen" . shell-script)
("shell" . sh)
("sqlite" . sql)
("toml" . conf-toml))
Documentation
Alist mapping languages to their major mode.
The key is the language name. The value is the mode name, as a string or a symbol, without the "-mode" suffix.
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 Org version
9.6.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defcustom org-src-lang-modes
'(("C" . c)
("C++" . c++)
("asymptote" . asy)
("bash" . sh)
("beamer" . latex)
("calc" . fundamental)
("cpp" . c++)
("ditaa" . artist)
("desktop" . conf-desktop)
("dot" . fundamental)
("elisp" . emacs-lisp)
("ocaml" . tuareg)
("screen" . shell-script)
("shell" . sh)
("sqlite" . sql)
("toml" . conf-toml))
"Alist mapping languages to their major mode.
The key is the language name. The value is the mode name, as
a string or a symbol, without the \"-mode\" suffix.
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 'org-edit-structure
:package-version '(Org . "9.6")
:type '(repeat
(cons
(string "Language name")
(symbol "Major mode"))))