emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Why ob-clojure.el does not respect :dir header argument?


From: address@hidden
Subject: Re: [O] Why ob-clojure.el does not respect :dir header argument?
Date: Thu, 29 Jun 2017 13:13:45 +0800

I will dive into source code, and try whether I can add advice on ob-clojure.el to inject Org-mode file directory into CIDER working directory everytime executing the clojure babel src block.

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Thu, Jun 29, 2017 at 10:40 AM, Tim Cross <address@hidden> wrote:
ob-clojure is limited by what can be done via the interfaces offered by cider. Have a look at the ob-clojure.el source code - it is very simple and does not have options/interfaces to support the full range of possible source block headers. Someone may be able to implement this, but nobody has. Feel free to have a go at it.

IMO ob-clojure is only written to do very basic clojure code evaluation. If you want something more complex, you have to add that hyourself. 



On 28 June 2017 at 21:01, address@hidden <address@hidden> wrote:
In Org-mode Info page, the header argument `:dir` is used to specify the default directory for code block execution.
But `ob-clojure` with `cider` as backend, will always use the `cider-jack-in` directory as default working directly. Is there a way to change this?

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/



--
regards,

Tim

--
Tim Cross



reply via email to

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