emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Chris Maier <christopher.maier@gmail.com>
To: Dan Davison <dandavison7@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [BABEL] Editing dot blocks with org-exp-blocks
Date: Wed, 9 Feb 2011 21:05:30 -0500	[thread overview]
Message-ID: <AANLkTi=nLBZwmdk=HXqs4i5fau8+MUmxnDwBjuUYy-TG@mail.gmail.com> (raw)
In-Reply-To: <m1ipwtuqvi.fsf@gmail.com>

On Wed, Feb 9, 2011 at 11:14 AM, Dan Davison <dandavison7@gmail.com> wrote:
> Chris Maier <christopher.maier@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

  reply	other threads:[~2011-02-10  2:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09  3:50 [BABEL] Editing dot blocks with org-exp-blocks Chris Maier
2011-02-09  8:56 ` Eric S Fraga
2011-02-09 13:31   ` Chris Maier
2011-02-09 14:10     ` Eric S Fraga
2011-02-09 15:14       ` Dan Davison
2011-02-09 15:39         ` Chris Maier
2011-02-09 16:14           ` Dan Davison
2011-02-10  2:05             ` Chris Maier [this message]
2011-02-10  1:05         ` Eric Schulte
2011-02-10 10:05           ` Eric S Fraga
2011-02-10 17:02             ` Eric Schulte
2011-02-09  8:58 ` Sébastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=nLBZwmdk=HXqs4i5fau8+MUmxnDwBjuUYy-TG@mail.gmail.com' \
    --to=christopher.maier@gmail.com \
    --cc=dandavison7@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).