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@gmail.com> wrote:

>   >> Rodney Sparapani <rsparapa@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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>



-- 
Ahmadou H. DICKO
Data scientist and applied economist
PhD student in Climate change economics
Faculty of economics and managment - Cheikh Anta Diop University
West African Science Service Center on Climate Change and Adaptated Land
Use (WASCAL)
Center for Development Research (ZEF) - University of Bonn
twitter : @dickoah
github : github/dickoa
tel : +221 33 827 55 16
portable: +221 77 123 81 69



-- 
Ahmadou H. DICKO
Data scientist and applied economist
PhD student in Climate change economics
Faculty of economics and managment - Cheikh Anta Diop University
West African Science Service Center on Climate Change and Adaptated Land
Use (WASCAL)
Center for Development Research (ZEF) - University of Bonn
twitter : @dickoah
github : github/dickoa
tel : +221 33 827 55 16
portable: +221 77 123 81 69

	[[alternative HTML version deleted]]

