On Wed, Feb 9, 2011 at 11:14 AM, Dan Davison <dandavis...@gmail.com> wrote: > Chris Maier <christopher.ma...@gmail.com> writes: >> Is there a way to explicitly associate an major mode with a particular >> kind of language block? > > Hi Chris, > > Yes, see the variable org-src-lang-modes. Use customize, or something > like this: > > #+begin_src emacs-lisp > (aput 'org-src-lang-modes "dot" 'graphviz-dot) > #+end_src > > (Elisp question: I can't remember why we don't use aput in org-mode? > What's the idiomatic org way of doing that? > > This > > #+begin_src emacs-lisp > (setq org-src-lang-modes > (append '(("dot" . graphviz-dot)) > (delq (assoc "dot" org-src-lang-modes) > org-src-lang-modes))) > #+end_src > > doesn't work if there's already more than one entry for "dot") > > Dan
org-src-lang-modes.... I knew I'd seen it somewhere! Thanks for the tip, Dan. Chris _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode