From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: Org-mode with multiple major modes Date: Fri, 28 Sep 2007 11:26:46 +0100 Message-ID: <20070928102646.GA2518@atlantic.linksys.moosehall> References: <87ir5vyxcs.fsf@ens-lsh.fr> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbD3a-0003Yl-N6 for emacs-orgmode@gnu.org; Fri, 28 Sep 2007 06:26:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbD3Z-0003Vz-1W for emacs-orgmode@gnu.org; Fri, 28 Sep 2007 06:26:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbD3Y-0003Vo-Qf for emacs-orgmode@gnu.org; Fri, 28 Sep 2007 06:26:48 -0400 Received: from mail.beimborn.com ([70.84.38.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IbD3Y-0007Ss-FE for emacs-orgmode@gnu.org; Fri, 28 Sep 2007 06:26:48 -0400 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id l8SAQkQV022013 for ; Fri, 28 Sep 2007 05:26:46 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id l8SAQkpU022008 for emacs-orgmode@gnu.org; Fri, 28 Sep 2007 11:26:46 +0100 Content-Disposition: inline In-Reply-To: <87ir5vyxcs.fsf@ens-lsh.fr> 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 On Fri, Sep 28, 2007 at 11:04:35AM +0200, Julien Barnier wrote: > Hi to all, > > And first of all, thanks for this stunning tool. > > My problem is that I'd like to use org-mode in conjunction with > noweb-mode, which is used to distinguish code chunks and doc chunks in > my file, using two different major modes for each one (with org-mode > used for doc chunks). > > It works great, except that when I move from a code chunk to a doc > chunk, org-mode seems to apply its startup options, and specially the > org-startup-folded one. So if I fold or unfold some sections in my > doc chunks, they are all folded or unfolded (depending on the > org-startup-folded value) when I move from a code chunk to a doc > chunk. > > Do you have any idea on how to solve this minor point ? Hi Julien, Would this solve your problem? http://mmm-mode.sourceforge.net/ "MMM Mode is an emacs add-on package providing a minor mode that allows Multiple Major Modes to coexist in one buffer." Adam