Variable: org-babel-tangle-lang-exts

org-babel-tangle-lang-exts is a customizable variable defined in ob-tangle.el.gz.

Value

(("sed" . "sed")
 ("ruby" . "rb")
 ("python" . "py")
 ("processing" . "pde")
 ("perl" . "pl")
 ("ocaml" . "ml")
 ("maxima" . "max")
 ("lua" . "lua")
 ("lisp" . "lisp")
 ("LilyPond" . "ly")
 ("latex" . "tex")
 ("julia" . "jl")
 ("java" . "java")
 ("haskell" . "hs")
 ("groovy" . "groovy")
 ("fortran" . "F90")
 ("clojurescript" . "cljs")
 ("clojure" . "clj")
 ("awk" . "awk")
 ("D" . "d")
 ("C++" . "cpp")
 ("emacs-lisp" . "el")
 ("elisp" . "el"))

Documentation

Alist mapping languages to their file extensions.

The key is the language name, the value is the string that should be inserted as the extension commonly used to identify files written in this language. If no entry is found in this list, then the name of the language is used.

This variable was added, or its default value changed, in Emacs 24.1.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-tangle.el.gz
(defcustom org-babel-tangle-lang-exts
  '(("emacs-lisp" . "el")
    ("elisp" . "el"))
  "Alist mapping languages to their file extensions.
The key is the language name, the value is the string that should
be inserted as the extension commonly used to identify files
written in this language.  If no entry is found in this list,
then the name of the language is used."
  :group 'org-babel-tangle
  :version "24.1"
  :type '(repeat
	  (cons
	   (string "Language name")
	   (string "File Extension"))))