[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] two sets of default header arguments for one language
From: |
Alan Schmitt |
Subject: |
Re: [O] two sets of default header arguments for one language |
Date: |
Mon, 14 Sep 2015 16:39:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
On 2015-09-11 11:36, Alan Schmitt <address@hidden> writes:
> On 2015-09-11 00:39, "Charles C. Berry" <address@hidden> 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’ll give it a try. Thanks a lot,
I would like to report that this worked perfectly and out of the box.
Thanks a lot!
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Last week athmospheric CO₂ average (Updated September 13, 2015, Mauna Loa Obs.):
397.77 ppm
signature.asc
Description: PGP signature
- Re: [O] two sets of default header arguments for one language, (continued)
Re: [O] two sets of default header arguments for one language, Charles C. Berry, 2015/09/10