From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: Re: Use orgstruct-mode to edit TWiki Markup language ? Date: Thu, 14 Feb 2008 00:58:45 +0000 Message-ID: <87ir0sgxq2.fsf@bzg.ath.cx> References: 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 1JPSRC-0007IY-OH for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 19:58:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPSRB-0007ED-22 for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 19:58:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPSRA-0007Dz-UK for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 19:58:52 -0500 Received: from ug-out-1314.google.com ([66.249.92.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPSRA-0006j2-Hl for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 19:58:52 -0500 Received: by ug-out-1314.google.com with SMTP id a2so965416ugf.48 for ; Wed, 13 Feb 2008 16:58:50 -0800 (PST) In-Reply-To: (Rainer Stengele's message of "Wed, 13 Feb 2008 23:24:19 +0100") 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: Rainer Stengele Cc: emacs-orgmode@gnu.org Rainer Stengele writes: > ---+ Headline Level 1 > * text > * text > ---+ Headline Level 1 > i. text1 > i. text2 > ---++ Headline Level 2 > ---+++ Headline Level 3 > ---++++ Headline Level 4 > > I wonder if it would be possible to somehow locally set the regex which > defines what a headline for org is. > As old perl hacker I would say the regex it is something as simple as > ^---[+]+\s As a starting point, maybe check outline-mode and outline-minor-mode. (setq outline-regexp "^---\++") will help. Then look in the menu for the show/hide commands in outline. Thus you will have basic folding capabilities. But not all the Org fun, sure. -- Bastien