emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] multiple modes in single buffer?


From: Matt Lundin
Subject: Re: [O] multiple modes in single buffer?
Date: Fri, 20 May 2011 19:12:38 -0400
User-agent: Gnus/5.110017 (No Gnus v0.17) Emacs/24.0.50 (gnu/linux)

David Rogoff <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]