Function: org-src-get-lang-mode

org-src-get-lang-mode is a byte-compiled function defined in org-src.el.gz.

Signature

(org-src-get-lang-mode LANG)

Documentation

Return major mode that should be used for LANG.

LANG is a string, and the returned major mode is a symbol.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defun org-src-get-lang-mode (lang)
  "Return major mode that should be used for LANG.
LANG is a string, and the returned major mode is a symbol."
  (intern
   (concat
    (let ((l (or (cdr (assoc lang org-src-lang-modes)) lang)))
      (if (symbolp l) (symbol-name l) l))
    "-mode")))