From: Lennart Borgman <lennart.borgman@gmail.com>
To: Nordlöw <per.nordlow@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Problems with mumamo in org-mode
Date: Sat, 31 Oct 2009 23:16:01 +0100 [thread overview]
Message-ID: <e01d8a50910311516p4b0a568bn92a2ec6c4f0b563c@mail.gmail.com> (raw)
In-Reply-To: <1ff1da4e-e76c-4555-bcd6-79fb92a39a74@v36g2000yqv.googlegroups.com>
On Sat, Oct 31, 2009 at 9:05 PM, Nordlöw <per.nordlow@gmail.com> wrote:
> I would like to syntax highlight source code snippets in org-mode.el
>
> I have used mumamo for this purpose with org-mode.el but I have found
> it really buggy. Is mmm-mode more stable/mature?
>
> Thanks in advance,
> Nordlöw
Hi Per,
I have no idea about what you mean with "really buggy". If you find a
bug can you please submit a normal bug report to nXhtml bug tracker at
Launchpad so we can fix it?
> code follows:
>
>
> (defvar mumamo-org-modes
> '(ruby-mode emacs-lisp-mode c-mode)
> "Modes to include in org-files")
>
> (defvar mumamo-org-chunk-functions
> nil
> "The automatically defined mumamo-chunk-org-* functions for use
> cramming other modes into org-mode. See `mumamo-org-modes'
> `mumamo-quick-static-chunk'.")
>
> (setq mumamo-org-chunk-functions
> (mapcar ;for
> (lambda (mode) ;each mode given
> (let* ((m-str (symbol-name mode))
> (m-name (substring m-str 0 (- (length m-str) 5))))
> (eval `(defun ,(intern (format "mumamo-chunk-org-%S" mode))
> (pos min max) ;define org mode mumamo
> ,(format "%s support inside org BEGIN END blocks"
> mode)
> (mumamo-quick-static-chunk
> pos min max
> (format "#+BEGIN_SRC %s" ,m-name)
> (format "#+END_SRC %s" ,m-name)
> t (quote ,mode) nil)))))
> mumamo-org-modes))
>
> (eval `(define-mumamo-multi-major-mode org-mumamo
> ,(format "Turn on multiple major modes with main major mode
> org-mode.\n\n%s"
> (mapconcat (lambda (el) (format "- %S" el))
> mumamo-org-modes "\n"))
> ("Org Source Blocks Family" org-mode ,mumamo-org-chunk-
> functions)))
>
next prev parent reply other threads:[~2009-10-31 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 20:05 Problems with mumamo in org-mode Nordlöw
2009-10-31 22:16 ` Lennart Borgman [this message]
2009-11-06 13:07 ` Lennart Borgman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50910311516p4b0a568bn92a2ec6c4f0b563c@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=per.nordlow@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.