From: Hopsing K <hopsingk@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org mode in multi-mode
Date: Sat, 1 Jan 2011 19:39:45 +0100 [thread overview]
Message-ID: <AANLkTin-VNK6c+FPys3tCPw+e=QO5oEwxL7kyyczE5mj@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1081 bytes --]
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
-------
/*<org>
* Description
** TODO write
</org>*/
int func1() {
int i = 0;
}
------
The two-mode-mode.el defines the default mode to be
c-mode and the <org>..</org> chunks to be org-mode.
The problem now is that the * headers will fold past the
</org> 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.:
<org>
* Description
** TODO write
#break
This belongs to Description.
#break
not folded
</org>
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
[-- Attachment #1.2: Type: text/html, Size: 1398 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
next reply other threads:[~2011-01-01 18:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-01 18:39 Hopsing K [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-01-02 19:42 org mode in multi-mode Hopsing K
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTin-VNK6c+FPys3tCPw+e=QO5oEwxL7kyyczE5mj@mail.gmail.com' \
--to=hopsingk@gmail.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 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.