emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dave Abrahams <dave@boostpro.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Using org-babel in other modes?
Date: Sun, 09 Oct 2011 20:52:30 -0400	[thread overview]
Message-ID: <m21uulk6r5.fsf@pluto.luannocracy.com> (raw)
In-Reply-To: <8739f1g12k.fsf@norang.ca> (Bernt Hansen's message of "Sun, 09 Oct 2011 20:08:51 -0400")


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

  reply	other threads:[~2011-10-10  0:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-09 21:44 Using org-babel in other modes? Dave Abrahams
2011-10-10  0:08 ` Bernt Hansen
2011-10-10  0:52   ` Dave Abrahams [this message]
2011-10-10  1:00     ` Bernt Hansen
2011-10-10  7:39   ` zwz
2011-10-10 14:41 ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m21uulk6r5.fsf@pluto.luannocracy.com \
    --to=dave@boostpro.com \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).