emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] orgstruct-mode with custom headline prefix


From: Dr Stephen J Eglen
Subject: Re: [O] orgstruct-mode with custom headline prefix
Date: Tue, 19 Feb 2013 10:18:34 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Christopher Schmidt <christopher <at> ch.ristopher.com> writes:

> 
> Christopher Schmidt <christopher <at> ch.ristopher.com> writes:
> > I will push a fix ASAP.
> 
> I did that now.
> 
>     d6f69f5 org.el: Use let instead of progv in org-run-like-in-org-mode
>     ea2d107 org.el: Declare orgstruct-mode
> 
>         Christopher
> 
> 


hi Christopher, 

I'm trying to add support for orgstruct-mode to R buffers (via ESS).
I think I'm nearly there, with the following magic at the end of my
buffers:


### Local Variables:
### eval: (orgstruct-mode 1)
### outline-regexp: "### "
### orgstruct-heading-prefix-regexp: "### "
### End:

so that lines such as:

### * section heading

become section headings.  This is really neat, thanks for your work.

I just wanted to check though whether we need to set outline-regexp; I
think this part of `org-cycle' requires outline-regexp to be set, but
I just wanted to check whether this was a pre-requisite, as it then
seems that we are setting two similar regexps.  Not a big deal, but
just wanted to check.  Most major modes (emacs-lisp, python, perl)
that I checked already set outline-regexp, whereas we currently don't
set it in ESS.

            (if (not (derived-mode-p 'org-mode))
                outline-regexp

Thanks, Stephen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]