emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [BABEL] Editing dot blocks with org-exp-blocks


From: Chris Maier
Subject: [Orgmode] Re: [BABEL] Editing dot blocks with org-exp-blocks
Date: Wed, 9 Feb 2011 21:05:30 -0500

On Wed, Feb 9, 2011 at 11:14 AM, Dan Davison <address@hidden> wrote:
> Chris Maier <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]