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 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




reply via email to

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