浏览代码

LaTeX export: Add more languages for source code publishing

Carsten Dominik 15 年之前
父节点
当前提交
1d18043506
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 3 0
      lisp/ChangeLog
  2. 4 1
      lisp/org-latex.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-08-11  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-latex.el (org-export-latex-listings-langs): Add a few more
+	languages.
+
 	* org-exp.el (org-export-preprocess-apply-macros): Make sure to
 	ignore newlines and space before the first macro argument.
 

+ 4 - 1
lisp/org-latex.el

@@ -318,7 +318,10 @@ for example using customize, or with something like
 		:perl "Perl" :cperl "Perl" :python "Python" :ruby "Ruby"
 		:html "HTML" :xml "XML"
 		:tex "TeX" :latex "TeX"
-		:shell-script "bash")
+		:shell-script "bash"
+		:gnuplot "Gnuplot"
+		:ocaml "Caml" :caml "Caml"
+		:sql "SQL")
   "Property list mapping languages to their listing language counterpart.
 Yhe keys ar ethe major mode symbol, the calues are the string that should be
 inserted as the language parameter for the listings package."