all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using multiple modes in org-mode to highlight source-code
@ 2008-11-20 10:40 Nordlöw
  2008-12-25 23:59 ` Lennart Borgman
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2008-11-20 10:40 UTC (permalink / raw)
  To: help-gnu-emacs

Has anyone succeeded in using multiple modes (using either mumamo.el,
mmm-mode or two-mode-mode.el) to enable font-locking of code-snippets
in org-mode? Currently only emacs lisp is supported by org-mode. But I
believe more languages will be added in the future.

Example snippet that should be highlighted in org-mode:

[[elisp:(setq x 1)]]

sub-mode begin pattern: "[[elisp:"
sub-mode end pattern: "]]"

I guess we could trigger on the pattern "[[LANG:" and activate LANG-
mode in that region.

We could make this work

/Nordlöw


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-25 23:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20 10:40 Using multiple modes in org-mode to highlight source-code Nordlöw
2008-12-25 23:59 ` Lennart Borgman

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.