From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: two sets of default header arguments for one language Date: Fri, 11 Sep 2015 11:36:17 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaKks-0004DF-A0 for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 05:36:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaKko-0001q1-9T for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 05:36:26 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:36782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaKko-0001pl-3j for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 05:36:22 -0400 In-Reply-To: (Charles C. Berry's message of "Thu, 10 Sep 2015 15:39:19 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Charles C. Berry" Cc: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-09-11 00:39, "Charles C. Berry" writes: >>> Is there a way to have two sets of default arguments for a given >>> language, or can I declare a new language just for the sake of different >>> arguments? >>> >> >> I'd use two new `languages'. >> >> For most uses, I think you can get away with as little as this: >> >> (defalias 'org-babel-execute:ocaml-a 'org-babel-execute:ocaml) >> (defalias 'org-babel-execute:ocaml-q 'org-babel-execute:ocaml) >> >> (defvar org-babel-default-header-args:ocaml-a >> '((:exports . "results") [fill in the rest] )) >> (defvar org-babel-default-header-args:ocaml-q >> '((:tangle . "tp1.ml"))) >> >> >> and have acceptable behavior without stepping on the original language. > > > You also want to customize `org-src-lang-modes' to be able to edit the src > code natively. Very nice! I=E2=80=99ll give it a try. Thanks a lot, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Last week athmospheric CO=E2=82=82 average (Updated September 9, 2015, Maun= a Loa Obs.): 377.86 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJV8qCRAAoJEAQNCjtO0uXHSNQIAJ0qVeCX1QZ/tk6V3mH2brU+ YapfPwcppCpatfFhhoraMIOep1LXp+EEt5v2T7HOmnqv5/5YrXmIwhYBi2rvzH/L JZbnXU9k602swunURCZYNEq5gnkXkgkY/Q7tcAdwrHBMr4gK+O60tlAN+Fm0nNVv Dgahp1UoTtrazCUfg1HqW2ViT9q3RL9jz5B9dVGGrITy6Xyf7qMRLajRdsYM7nbK 1LO4+okfDC8uQdoUyqLux9mWJHZZZWhDa4JQG2emo9x5CezcWwUGj4AISfolcH+J LVX+abHKZzH2m9/zFtufAgbP+rB9iEjsuK6nzSA6fxYhHtgpmHw3dm/src9ccpM= =oEXA -----END PGP SIGNATURE----- --=-=-=--