[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Using org-babel in other modes?
From: |
Dave Abrahams |
Subject: |
Re: [O] Using org-babel in other modes? |
Date: |
Sun, 09 Oct 2011 20:52:30 -0400 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) |
on Sun Oct 09 2011, Bernt Hansen <bernt-AT-norang.ca> 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