【发布时间】:2012-05-29 12:58:50
【问题描述】:
我想在 Emacs 中混合使用 org-mode 和 c-mode。一切都在一个 comment 应该是 org-mode,其余的应该是默认的 major-mode c 模式:
/*
Org-mode here
** Section 1
text
** Section 2
text
Org-mode should end here
*/
func1()
{
}
我试过用nXhtml multi-major-mode,我猜还有其他的模式 也支持多模式。我现在的问题是,如果我输入 TAB 在“第 2 节”上,则“第 2 节”下方的所有内容将被折叠并 变得不可见。但我想包含 org-mode 的区域 折叠/展开到评论部分。 TAB 应该只折叠/展开 直到“*/”。
我想知道我怎样才能做到这一点?
【问题讨论】:
-
你可以使用babel
-
不是我想要的:整个文件应该是一个普通的 c 文件。我想要 c-cmets 中的 org-mode 功能。