From: Matt Lundin <mdl@imapmail.org>
To: David Rogoff <david@therogoffs.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: multiple modes in single buffer?
Date: Fri, 20 May 2011 19:12:38 -0400 [thread overview]
Message-ID: <87fwo955ll.fsf@fastmail.fm> (raw)
In-Reply-To: <4DD6E93E.4060604@therogoffs.com> (David Rogoff's message of "Fri, 20 May 2011 15:20:46 -0700")
David Rogoff <david@therogoffs.com> writes:
> I have a feeling I know the answer, but it's worth bringing up. I'd
> like to have multiple modes for different regions of a file. I'm
> using the "-*- mode: org -*-" as the first line of my org files.
> However, many of my org files contains bits of c and Verilog code.
> I'd like these regions to be formatted and use the faces for those
> modes.
>
> Is this possible?
Yes. Source blocks and org-babel provide all sorts of ways to include
bits of code (and their results/output) in an org file.
(info "(org) Working With Source Code")
The variables org-src-fontify-natively and org-src-tab-acts-natively
might be of particular interest.
Best,
Matt
next prev parent reply other threads:[~2011-05-20 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-20 22:20 multiple modes in single buffer? David Rogoff
2011-05-20 23:12 ` Matt Lundin [this message]
2011-05-20 23:36 ` David Rogoff
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=87fwo955ll.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=david@therogoffs.com \
--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).