summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Schmitt <alan.schmitt@polytechnique.org>2015-11-30 13:07:56 +0100
committerAlan Schmitt <alan.schmitt@polytechnique.org>2015-12-01 09:16:06 +0100
commitb2eb53f27d5064269ccd9ef7c4ed9163fdee6f82 (patch)
treed16c98c5a4eea896a27835fa1cac4a6192dddc29
parent18f0835840285f7f496541436c6a16b41d8222ff (diff)
downloadorg-mode-b2eb53f27d5064269ccd9ef7c4ed9163fdee6f82.tar.gz
ox-latex: Make org-latex-custom-lang-environments a defcustom
* ox-latex.el (org-latex-custom-lang-environments): Change from defvar into a defcustom.
-rw-r--r--lisp/ox-latex.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index eaad29f..407df6b 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1021,7 +1021,7 @@ block-specific options, you may use the following syntax:
(string :tag "Minted option name ")
(string :tag "Minted option value"))))
-(defvar org-latex-custom-lang-environments nil
+(defcustom org-latex-custom-lang-environments nil
"Alist mapping languages to language-specific LaTeX environments.
It is used during export of src blocks by the listings and minted
@@ -1062,7 +1062,14 @@ will produce
\\end{minted}
\\caption{<caption>}
\\label{<label>}
- \\end{listing}")
+ \\end{listing}"
+ :group 'org-export-latex
+ :type '(repeat
+ (list
+ (symbol :tag "Language name ")
+ (string :tag "Environment name or format string")))
+ :version "25.1"
+ :package-version '(Org . "9.0"))
;;;; Compilation