emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [babel, ess] How can I make S-RET to be multi-session friendly?


From: Eric Schulte
Subject: Re: [O] [babel, ess] How can I make S-RET to be multi-session friendly?
Date: Fri, 10 Aug 2012 06:42:17 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Mikhail Titov <address@hidden> writes:

> Hello!
>
> There is a wonderful post[1] on how to make S-RET to do handy things in
> ESS mode. However I often find myself working on several Org documents
> from different folders.
>
> It is quite inconvenient to change a directory in =*R*= buffer each
> time I work on different document.
>
> Is there a neat way to somehow reuse Org mode property =session= that I
> set buffer wide?
>

I'm not sure what you mean by "reuse".  All of the information for how
to set header arguments in available at (info "(org) Using header arguments")

>
> Also for some reason
>
> #+PROPERTY: session *Rsomename*
>
> does not override session name set in
> =org-babel-default-header-args:R= even after =C-c C-c= on it when I
> re-evaluate babel code block with =C-c C-c= on code block, while
> explicit block header =:session *Rsomename*= makes difference.
>

Yes, the order of precedence is

system-level < buffer/subtree-level < language-level < code-block-level

>
> ,----[ snippet from dot emacs ]
> | (setq org-babel-default-header-args:R
> |       '((:results . "output") (:session . "*R*")))
> `----
>

Given that (:session . "*R*") will be used by default you could simply
remove it from your custom setting for org-babel-default-header-args.

Best,

>
> I'm running Org-mode version 7.8.10 (release_7.8.10-658-g451191.dirty)
>
> Footnotes: 
> [1]
> http://www.kieranhealy.org/blog/archives/2009/10/12/make-shift-enter-do-a-lot-in-ess/

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



reply via email to

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