From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Using org-babel in other modes? Date: Mon, 10 Oct 2011 08:41:50 -0600 Message-ID: <87wrccx4cl.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDHcr-0006fg-2P for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 11:18:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDHcp-000777-6n for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 11:18:45 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:33692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDHco-00076X-RQ for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 11:18:43 -0400 Received: by ywe9 with SMTP id 9so6540661ywe.0 for ; Mon, 10 Oct 2011 08:18:41 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dave Abrahams Cc: emacs-orgmode@gnu.org Hi Dave, Sadly I think the level of effort here is likely closer to "read the code and figure it out" than to a quick <1hour effort. I would have to dig through the code to figure out exactly how difficult this would be, but I would imagine that the different moving parts which make this work in Org-mode are likely scattered in a couple of different places. There is MuMaMo-mode which is not related to the Org-mode implementation but is designed specifically for embedding multiple major modes into a single mode. However it can sometimes be hairy to configure and it proved insufficient for the source-code-block highlighting in Org-mode. Best -- Eric Dave Abrahams writes: > Org-babel does a magic thing where you get to edit and view your source > code blocks in their native modes. Wow! > > I also happen to use markdown-mode to write blog articles. How hard, on > a scale from "read the source and figure it out" to "org-babel already > has the hooks; you can do it in 5 minutes," would it be to integrate the > org-babel stuff with markdown? > > Seems like this trick would be extremely useful for quite a few modes > (RestructuredText, anyone?) > > Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte/