emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] :session question


From: Andreas Leha
Subject: Re: [O] :session question
Date: Tue, 26 Mar 2013 10:23:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Rainer M Krug <address@hidden> writes:

> On 26/03/13 01:46, Eric Schulte wrote:
>> Michael Gauland <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]