From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: :session question Date: Tue, 26 Mar 2013 13:44:18 +0100 Message-ID: <87620ez5y5.fsf@med.uni-goettingen.de> References: <51501AF2.1070405@easy-emacs.de> <8738vjugwd.fsf@gmail.com> <51516699.6090604@gmail.com> <87ip4ezf93.fsf@med.uni-goettingen.de> <87fvzi72ve.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKTEy-0007bO-1Y for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:44:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKTEw-0004Cb-AO for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:44:35 -0400 Received: from plane.gmane.org ([80.91.229.3]:59277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKTEw-0004CQ-0k for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:44:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UKTFH-000574-IJ for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 13:44:55 +0100 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Mar 2013 13:44:55 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Mar 2013 13:44:55 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Eric, Eric Schulte 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