* multiple modes in single buffer?
@ 2011-05-20 22:20 David Rogoff
2011-05-20 23:12 ` Matt Lundin
0 siblings, 1 reply; 3+ messages in thread
From: David Rogoff @ 2011-05-20 22:20 UTC (permalink / raw)
To: emacs-orgmode
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?
Thanks,
David
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: multiple modes in single buffer?
2011-05-20 22:20 multiple modes in single buffer? David Rogoff
@ 2011-05-20 23:12 ` Matt Lundin
2011-05-20 23:36 ` David Rogoff
0 siblings, 1 reply; 3+ messages in thread
From: Matt Lundin @ 2011-05-20 23:12 UTC (permalink / raw)
To: David Rogoff; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-20 23:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-20 22:20 multiple modes in single buffer? David Rogoff
2011-05-20 23:12 ` Matt Lundin
2011-05-20 23:36 ` David Rogoff
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).