Re: [O] getting directory of org installation in elisp

2014-05-30 Thread Rainer M Krug
Bastien writes: > Hi Rainer, Hi Bastien, > > Rainer M Krug writes: > >> And I want to load this R code into R, controlled from org. > > Ok, I understand now -- then yes, you can use the etc/ directory > for R code that will be loaded. But please anticipate that this > new etc/ content needs t

Re: [O] getting directory of org installation in elisp

2014-05-30 Thread Bastien
Hi Rainer, Rainer M Krug writes: > And I want to load this R code into R, controlled from org. Ok, I understand now -- then yes, you can use the etc/ directory for R code that will be loaded. But please anticipate that this new etc/ content needs to be added to Emacs when people install Org --

Re: [O] getting directory of org installation in elisp

2014-05-23 Thread Aaron Ecay
Hi Rainer, You might want to look at how ESS handles a similar situation, via the variables ess-etc-directory and ess-lisp-directory in the ess-site.el file. -- Aaron Ecay

Re: [O] getting directory of org installation in elisp

2014-05-23 Thread Rainer M Krug
Bastien writes: > Hi Rainer, > > Rainer M Krug writes: > >> I want to load some R code into org when using R with org (i.e. in >> ob-R.el) which would be part of org mode. Therefore I have two >> questions: > > I'm not sure I understand: why do you need to put R code in an > external file? For

Re: [O] getting directory of org installation in elisp

2014-05-23 Thread Bastien
Hi Rainer, Rainer M Krug writes: > I want to load some R code into org when using R with org (i.e. in > ob-R.el) which would be part of org mode. Therefore I have two > questions: I'm not sure I understand: why do you need to put R code in an external file? For testing purpose? > 1) Where can

[O] getting directory of org installation in elisp

2014-05-23 Thread Rainer M Krug
Hi I want to load some R code into org when using R with org (i.e. in ob-R.el) which would be part of org mode. Therefore I have two questions: 1) Where can I put the R code? My idea would be to put it in ORGDIR/etc/R/ - would this be OK with the general philosophy of directory structures? 2) Ho