Variable: org-src-lang-modes

org-src-lang-modes is a customizable variable defined in org-src.el.gz.

Value

(("lilypond" . LilyPond) ("beamer" . LaTeX) ("latex" . LaTeX)
 ("C" . c) ("C++" . c++) ("asymptote" . asy) ("beamer" . latex)
 ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist)
 ("desktop" . conf-desktop) ("dot" . fundamental)
 ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script)
 ("sqlite" . sql) ("toml" . conf-toml) ("shell" . sh) ("ash" . sh)
 ("sh" . sh) ("bash" . sh) ("jsh" . sh) ("bash2" . sh) ("dash" . sh)
 ("dtksh" . sh) ("ksh" . sh) ("es" . sh) ("rc" . sh) ("itcsh" . sh)
 ("tcsh" . sh) ("jcsh" . sh) ("csh" . sh) ("ksh88" . sh) ("oash" . sh)
 ("pdksh" . sh) ("mksh" . sh) ("posix" . sh) ("wksh" . sh)
 ("wsh" . sh) ("zsh" . sh) ("rpm" . sh))

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.7.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defcustom org-src-lang-modes
  `(("C" . c)
    ("C++" . c++)
    ("asymptote" . asy)
    ("beamer" . latex)
    ("calc" . fundamental)
    ("cpp" . c++)
    ("ditaa" . artist)
    ("desktop" . conf-desktop)
    ("dot" . fundamental)
    ("elisp" . emacs-lisp)
    ("ocaml" . tuareg)
    ("screen" . shell-script)
    ("sqlite" . sql)
    ("toml" . conf-toml)
    ("shell" . sh)
    ,@(org-src--get-known-shells))
  "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.7")
  :type '(repeat
	  (cons
	   (string :tag "Language name")
	   (symbol :tag "Major mode"))))