emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Use orgstruct-mode to edit TWiki Markup language ?
@ 2008-02-13 22:24 Rainer Stengele
  2008-02-13 22:58 ` Russell Adams
  2008-02-14  0:58 ` Bastien Guerry
  0 siblings, 2 replies; 4+ messages in thread
From: Rainer Stengele @ 2008-02-13 22:24 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

We (have to) use TWiki as a documentation tool in my company.
I already use Emacs erin-mode to edit the TWiki pages which is not bad.

What I am really mssing is something like the outline (folding) 
possibilities of org!

I know org provides the orgstruct-mode, but the problem is the different 
headline format of the TWiki markup language:

Example:

---+ 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

A configurable headline could serve in all similar cases where you find 
a regular formatted headline.


Of course I would be more than happy to have org produce TWiki markup 
language directly...


rainer

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use orgstruct-mode to edit TWiki Markup language ?
  2008-02-13 22:24 Use orgstruct-mode to edit TWiki Markup language ? Rainer Stengele
@ 2008-02-13 22:58 ` Russell Adams
  2008-02-13 23:07   ` Rainer Stengele
  2008-02-14  0:58 ` Bastien Guerry
  1 sibling, 1 reply; 4+ messages in thread
From: Russell Adams @ 2008-02-13 22:58 UTC (permalink / raw)
  To: emacs-orgmode

I export org files into TWiki with the following Carten posted:

perl -ape 's/^\*+/"---" . "+" x length($&)/e' input.org > output.txt


On Wed, Feb 13, 2008 at 11:24:19PM +0100, Rainer Stengele wrote:
> Hi all,
> 
> We (have to) use TWiki as a documentation tool in my company.
> I already use Emacs erin-mode to edit the TWiki pages which is not bad.
> 
> What I am really mssing is something like the outline (folding) 
> possibilities of org!
> 
> I know org provides the orgstruct-mode, but the problem is the different 
> headline format of the TWiki markup language:
> 
> Example:
> 
> ---+ 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
> 
> A configurable headline could serve in all similar cases where you find 
> a regular formatted headline.
> 
> 
> Of course I would be more than happy to have org produce TWiki markup 
> language directly...
> 
> 
> rainer
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use orgstruct-mode to edit TWiki Markup language ?
  2008-02-13 22:58 ` Russell Adams
@ 2008-02-13 23:07   ` Rainer Stengele
  0 siblings, 0 replies; 4+ messages in thread
From: Rainer Stengele @ 2008-02-13 23:07 UTC (permalink / raw)
  To: emacs-orgmode

thanks.

thats ok when starting with an org file.

But having to continue to edit existing TWiki files that does not help 
and I would at least really like to use the outlining features of org.

rainer

Russell Adams schrieb:
> I export org files into TWiki with the following Carten posted:
> 
> perl -ape 's/^\*+/"---" . "+" x length($&)/e' input.org > output.txt
> 
> 
> On Wed, Feb 13, 2008 at 11:24:19PM +0100, Rainer Stengele wrote:
>> Hi all,
>>
>> We (have to) use TWiki as a documentation tool in my company.
>> I already use Emacs erin-mode to edit the TWiki pages which is not bad.
>>
>> What I am really mssing is something like the outline (folding) 
>> possibilities of org!
>>
>> I know org provides the orgstruct-mode, but the problem is the different 
>> headline format of the TWiki markup language:
>>
>> Example:
>>
>> ---+ 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
>>
>> A configurable headline could serve in all similar cases where you find 
>> a regular formatted headline.
>>
>>
>> Of course I would be more than happy to have org produce TWiki markup 
>> language directly...
>>
>>
>> rainer
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> 
> ------------------------------------------------------------------
> Russell Adams                            RLAdams@AdamsInfoServ.com
> 
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
> 
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use orgstruct-mode to edit TWiki Markup language ?
  2008-02-13 22:24 Use orgstruct-mode to edit TWiki Markup language ? Rainer Stengele
  2008-02-13 22:58 ` Russell Adams
@ 2008-02-14  0:58 ` Bastien Guerry
  1 sibling, 0 replies; 4+ messages in thread
From: Bastien Guerry @ 2008-02-14  0:58 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode

Rainer Stengele <rainer.stengele@diplan.de> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-14  0:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13 22:24 Use orgstruct-mode to edit TWiki Markup language ? Rainer Stengele
2008-02-13 22:58 ` Russell Adams
2008-02-13 23:07   ` Rainer Stengele
2008-02-14  0:58 ` Bastien Guerry

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).