Eric Schulte <schulte.e...@gmail.com> writes: > Thorsten Jolitz <tjol...@gmail.com> writes: > >> Hi List, >> >> due to the relatively frequent mismatches between language names >> extracted from major-mode names and language identifiers used by >> Org-Babel I try to build the definite translation alist between both >> names. >> > > The `org-src-lang-modes' variable should hold this list, elements not in > the list simply append "-mode" to the end of the source name.
Oh, I see ... then I don't have to replicate this. But what about R vs ess? I started to deal with this because R-mode is actually just a dialect of ess-mode and returns 'ess-mode' when doing M-: major-mode. OTOH putting a buffer in ess-mode makes no sense either, its kind of an abstract super-mode, one has to call R-mode to get something functional. And what about upper/lower case? Only "C" for c-mode, or "c" too? ,--------------------- | `org-src-lang-modes' `--------------------- ,---------------------------- | Original value was | (("ocaml" . tuareg) | ("elisp" . emacs-lisp) | ("ditaa" . artist) | ("asymptote" . asy) | ("dot" . fundamental) | ("sqlite" . sql) | ("calc" . fundamental) | ("C" . c) | ("cpp" . c++) | ("C++" . c++) | ("screen" . shell-script)) `---------------------------- -- cheers, Thorsten