Rainer M Krug <r.m.k...@gmail.com> writes:

> On 26/03/13 01:46, Eric Schulte wrote:
>> Michael Gauland <mikely...@no8wireless.co.nz> writes:
>> 
>>> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>>> 
>>>> Would find it more natural if ":session" is the default, while a command 
>>>> "refresh" makes a
>>>> new one.
>>> 
>> 
>> Header argument defaults are easy to accomplish on a per user or per file 
>> basis, just customize
>> the `org-babel-default-header-args' variable.
>> 
>> ,----[org-babel-default-header-args] | org-babel-default-header-args is a 
>> variable defined in
>> `ob.el'. | Its value is ((:noweb . "yes") |  (:session . "none") |  
>> (:results . "replace") |
>> (:exports . "code") |  (:cache . "no") |  (:hlines . "no") |  (:tangle . 
>> "no") |  (:padnewline
>> . "yes")) | | | Documentation: | Default arguments to use when evaluating a 
>> source block.
>
> Question from here:
>
> I use mainly R and have there set file wide
>
> #+PROPERTY: session "R-session"
>
> But I also have bash code, which would be evaluated in the R session, unless 
> I use
>
> #+begin_src sh :session sh-session
>  ...
> #+end_src
>
> But I do not need a session for the bash code blocks - so would :session 
> "none" disable session
> for this source block?
> This would be great!
>
> Also: it would be quite nice if one could set the session argument specific 
> for languages, so that
> I could file wide
>
> #+PROPERTY: R-session "R"
> #+PROPERTY: sh-session "sh"
>

+1

[...]

Regards,
Andreas


Reply via email to