From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: :session question Date: Tue, 26 Mar 2013 06:37:35 -0600 Message-ID: <87fvzi72ve.fsf@gmail.com> References: <51501AF2.1070405@easy-emacs.de> <8738vjugwd.fsf@gmail.com> <51516699.6090604@gmail.com> <87ip4ezf93.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKT8w-0000mP-DP for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:38:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKT8u-00025c-T2 for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:38:22 -0400 Received: from mail-da0-x233.google.com ([2607:f8b0:400e:c00::233]:59777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKT8u-00025T-ML for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:38:20 -0400 Received: by mail-da0-f51.google.com with SMTP id g27so3537001dan.24 for ; Tue, 26 Mar 2013 05:38:20 -0700 (PDT) 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: Andreas Leha Cc: emacs-orgmode@gnu.org >> >> 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, > > [...] > > Regards, > Andreas > > -- Eric Schulte http://cs.unm.edu/~eschulte