[ESS] Introducing Polymode
Vitalie Spinu
spinuvit at gmail.com
Thu Apr 4 21:44:44 CEST 2013
Hi,
Yes indeed. The org-babel should pretty much mirror the markdown. The
issues and potential problems are identical.
I was not too much in a hurry to add org-mode as the stuff is still
unstable, and I don't want too many people switching to it because the
interface might change.
What you write looks fine to me except the step 3. Step 3 is there for
.md to allow for customized support of knitr (custom R related map).
If it works for you then please make a pull request and I will add it to
the repo. Would be nice to have a full org example with R, python
etc. If you have one, could you please add it to the test dir.
Thanks,
Vitalie
>> Ahmadou Dicko <dicko.ahmadou at gmail.com>
>> on Thu, 4 Apr 2013 19:26:40 +0000 wrote:
> Hi Vitalie,
> I want to know if an org-babel mode for polymode is planned in the future.
> I started to think about that
> So far I see it as a three steps process
> - Step 1 : add something like this to poly-base.el
> (defcustom pm-base/org-babel
> (pm-submode "org-babel"
> :mode 'org-mode)
> "Orgbabel base submode"
> :group 'base-submodes
> :type 'object)
> - Step 2 : create a poly-org-babel.el, so create something like
> (require 'polymode)
> (defcustom pm-config/org-babel
> (pm-config-multi-auto "org-babel"
> :base-submode-name 'pm-base/org-babel
> :auto-submode-name 'pm-submode/org-babel)
> "Org-Babel typical configuration"
> :group 'polymode
> :type 'object)
> (defcustom pm-submode/org-babel
> (pm-inner-submode-auto "org-babel"
> :head-reg "^\\(?:#\\+begin_src\\(?: R\\)?\\)*$"
> :tail-reg "^\\(?:#\\+end_src\\)*$")
> "Org-Babel typical chunk."
> :group 'polymode
> :type 'object)
> (define-polymode poly-org-babel-mode pm-config/org-babel)
> (add-to-list 'auto-mode-alist '("\\.org" . poly-org-babel-mode))
> (provide 'poly-org-babel)
> - Step 3 : Add an entry to poly-R.el and create and a
> "pm-submode/org-babel+R"
> There's something I'm missing to make it work, I didn't write the
> org-babel+R so I can't try but I want to
> know if there are other considerations to take into account if I want to
> create an org-babel mode for polymode.
> Just want to add that I found really useful to evaluate the R
> examples..this is awesome. Thanks
> On Tue, Apr 2, 2013 at 7:10 PM, Vitalie Spinu <spinuvit at gmail.com> wrote:
>> >> Rodney Sparapani <rsparapa at mcw.edu>
>> >> on Tue, 02 Apr 2013 13:58:36 -0500 wrote:
>>
>> > On 03/28/2013 09:25 AM, Rodney Sparapani wrote:
>> >> Ah, I see. Well then, this is a good reason to update to cppFunction.
>> >> Thanks for the amazing new features!
>>
>> > Hi Vitalie:
>>
>> > I am trying to keep track of these bugs and fixes. But, there seems to
>> be no
>> > polymode-version either variable or function. Any plans for
>> > something like that? Also, to be clear, we can keep current with
>> > your git repo by simply doing a "git pull", correct? Thanks
>>
>> Yes, that is right. And the version is the git commit number that you
>> can see with git show, git log etc
>>
>> Vitalie
>>
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help>
More information about the ESS-help
mailing list