From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Maier Subject: Re: [BABEL] Editing dot blocks with org-exp-blocks Date: Wed, 9 Feb 2011 21:05:30 -0500 Message-ID: References: <87hbcd1t94.fsf@pinto.chemeng.ucl.ac.uk> <87k4h9xpro.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=37917 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnLuZ-0005lW-3T for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 21:05:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnLuV-0003mJ-Bc for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 21:05:32 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:52311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnLuV-0003mE-87 for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 21:05:31 -0500 Received: by yxl31 with SMTP id 31so412848yxl.0 for ; Wed, 09 Feb 2011 18:05:30 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dan Davison Cc: emacs-orgmode On Wed, Feb 9, 2011 at 11:14 AM, Dan Davison wrote: > Chris Maier 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 > =A0 =A0 =A0(append '(("dot" . graphviz-dot)) > =A0 =A0 =A0 =A0 =A0 =A0 =A0(delq (assoc "dot" org-src-lang-modes) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0org-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, D= an. Chris