[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 13:44:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi Eric,
Eric Schulte <address@hidden> writes:
>>>
>>> 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!
>>>
>
> Yes
>
>>>
>>> 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
>>
>
> This can be done system wide by setting the language-specific header
> arguments. This can also be done file-wide through the use of file
> local variables (instead of the property line above).
>
> Please read through the header argument documentation to see the many
> different ways in which header arguments may be set.
>
> http://orgmode.org/manual/Using-header-arguments.html
>
> Best,
>
Thanks for taking this up. And sorry for my ignorance. I have read the
linked pages, but I still do not know how to achieve the language
specific session values.
Could you provide an example?
Regards,
Andreas
- [O] :session question, Andreas Röhler, 2013/03/25
- Re: [O] :session question, Michael Gauland, 2013/03/25
- Re: [O] :session question, Eric Schulte, 2013/03/25
- Re: [O] :session question, Andreas Röhler, 2013/03/26
- Re: [O] :session question, Rainer M Krug, 2013/03/26
- Re: [O] :session question, Andreas Leha, 2013/03/26
- Re: [O] :session question, Eric Schulte, 2013/03/26
- Re: [O] :session question,
Andreas Leha <=
- Re: [O] :session question, Achim Gratz, 2013/03/26
- Re: [O] :session question, Eric Schulte, 2013/03/26
- Re: [O] :session question - header argument setting, Rainer M Krug, 2013/03/27
- Re: [O] :session question - header argument setting, Sebastien Vauban, 2013/03/27
- Re: [O] :session question, Andreas Röhler, 2013/03/27
- Re: [O] :session question, Andreas Leha, 2013/03/27
- Re: [O] :session question, Andreas Röhler, 2013/03/27
- Re: [O] :session question, Nick Dokos, 2013/03/27
- Re: [O] :session question, Andreas Röhler, 2013/03/27
- Re: [O] :session question, Rainer M Krug, 2013/03/27