Allow language names where the major mode name seems unrelated to the language
commit5e9fc2039472603519a321d109163908fe97ab88
authorCarsten Dominik <carsten.dominik@gmail.com>
Sun, 23 Aug 2009 17:31:47 +0000 (23 19:31 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sun, 23 Aug 2009 17:31:47 +0000 (23 19:31 +0200)
tree2cad08ffa77b6ba55831ecbdbf23f9388725af7a
parent23e30ef38e30f3a4cc30f8e6b50992e815596c21
Allow language names where the major mode name seems unrelated to the language

Eric Schulte writes:

> Attached is a small patch for a small issue.
>
> Sometimes a language uses a major mode which can't be guessed
> from it's name.  This patch introduces the `org-src-lang-modes'
> variable which can be used to map language names to major modes
> when this is the case.  This is used when editing a source-code
> block, or when exporting fontified source-code with htmlize.
>
> So far the only instance of this that I know of is ocaml and
> tuareg-mode, so that's the only thing that `org-src-lang-modes'
> is pre-populated with.  Maybe there are other instances as well?
lisp/ChangeLog
lisp/org-exp.el
lisp/org-src.el