From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hopsing K Subject: org mode in multi-mode Date: Sat, 1 Jan 2011 19:39:45 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0623483489==" Return-path: Received: from [140.186.70.92] (port=35872 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZ6Mn-00036x-66 for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 13:39:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZ6Ml-0000BM-SM for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 13:39:49 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:51015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZ6Ml-0000BF-O9 for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 13:39:47 -0500 Received: by wwi18 with SMTP id 18so13001655wwi.0 for ; Sat, 01 Jan 2011 10:39:46 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0623483489== Content-Type: multipart/alternative; boundary=0016e6de03be233d350498cd3ec2 --0016e6de03be233d350498cd3ec2 Content-Type: text/plain; charset=ISO-8859-1 I am trying to use org-mode and c-mode together with using the Two-Mode-Mode (http://www.emacswiki.org/cgi-bin/wiki/MultipleModes). I'd like to embed org-mode comments inside a c file, using org-mode for commenting c code, something that would be quite useful I thought. something like this ------- /* * Description ** TODO write */ int func1() { int i = 0; } ------ The two-mode-mode.el defines the default mode to be c-mode and the .. chunks to be org-mode. The problem now is that the * headers will fold past the marker. My question is: - is there another multi-mode that works with org - is there a #break style tag in org-mode that lets me define a section end: i.e.: * Description ** TODO write #break This belongs to Description. #break not folded Where I can define a subsection to end. When I then for instance TAB on "** TODO write" only the ** TODO write #break will fold. If I TAB on "* Description" only the part up till "not folded" will fold. -- Greetings Konrad --0016e6de03be233d350498cd3ec2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am trying to use org-mode and c-mode together with using the
Two-Mode= -Mode (http= ://www.emacswiki.org/cgi-bin/wiki/MultipleModes). I'd like to embed= org-mode comments
inside a c file, using org-mode for commenting c code,
something that wo= uld be quite useful I thought.
something like this
-------
/*<o= rg>
* Description
=A0 ** TODO write
=A0
</org>*/
int func1() {
=A0 int i =3D 0;
}
------
The two-mode-mode.el de= fines the default mode to be
c-mode and the <org>..</org> c= hunks to be org-mode.
The problem now is that the * headers will fold pa= st the
</org> marker. My question is:
=A0- is there another multi-mode th= at works with org
=A0- is there a #break style tag in org-mode that
= =A0=A0 lets me define a section end: i.e.:
=A0=A0 <org>
=A0=A0 * Description
=A0=A0 =A0=A0 ** TODO write
=A0=A0=A0=A0=A0 #break
=A0=A0=A0=A0=A0 This belongs to Description.
= =A0=A0 #break
=A0 not folded
=A0=A0 </org>
=A0
=A0 Where I can define a subsection to end. When I = then for instance TAB on "** TODO write" only the
=A0=A0 =A0= =A0 ** TODO write
=A0=A0=A0=A0=A0 #break
will fold. If I TAB on "* Description" only the part up till &quo= t;not folded" will fold.


-- Greetings Konrad
=A0

=A0



--0016e6de03be233d350498cd3ec2-- --===============0623483489== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0623483489==--