From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Abrahams Subject: Re: Using org-babel in other modes? Date: Sun, 09 Oct 2011 20:52:30 -0400 Message-ID: References: <8739f1g12k.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RD46d-00046x-6B for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 20:52:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RD46b-0002CR-S4 for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 20:52:35 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:37198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RD46b-0002CF-Pg for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 20:52:33 -0400 Received: by vws16 with SMTP id 16so5264524vws.0 for ; Sun, 09 Oct 2011 17:52:32 -0700 (PDT) In-Reply-To: <8739f1g12k.fsf@norang.ca> (Bernt Hansen's message of "Sun, 09 Oct 2011 20:08:51 -0400") 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: Bernt Hansen Cc: emacs-orgmode@gnu.org on Sun Oct 09 2011, Bernt Hansen wrote: > Is it just a matter of defining the mode to use for some new source? Sorry, I don't think I understand the question. > For plantuml I have the following: > (org-babel-do-load-languages > (quote org-babel-load-languages) > (quote ((emacs-lisp . t) > (dot . t) > (ditaa . t) > (R . t) > (python . t) > (ruby . t) > (gnuplot . t) > (clojure . t) > (sh . t) > (ledger . t) > (org . t) > (plantuml . t) > (latex . t)))) > > (add-to-list 'org-src-lang-modes (quote ("plantuml" . fundamental))) > This enables fundamental-mode when I C-c ' on a plantuml block > #+begin_src plantuml :file foo.png > > #+end_src > Does that help? I'm not sure... *looks up org-src-lang-modes* Oh, no I think you misunderstood me. I am not trying to add an additional language recognizer to org-babel. Markdown is a plaintext document format roughly similar to Org. What I want is to modify markdown-mode so that /its/ code blocks, which are currently recognized by markdown-mode but rendered in one solid face and without any language-specific editing smarts, behave like org's. -- Dave Abrahams BoostPro Computing http://www.boostpro.com