[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
- Re: [O] orgstruct-mode with custom headline prefix, Carsten Dominik, 2013/02/01
- Re: [O] orgstruct-mode with custom headline prefix, Christopher Schmidt, 2013/02/10
- Re: [O] orgstruct-mode with custom headline prefix, Bastien, 2013/02/11
- Re: [O] orgstruct-mode with custom headline prefix, Achim Gratz, 2013/02/12
- Re: [O] orgstruct-mode with custom headline prefix, Christopher Schmidt, 2013/02/12
- Re: [O] orgstruct-mode with custom headline prefix, Bastien, 2013/02/12
- Re: [O] orgstruct-mode with custom headline prefix, Christopher Schmidt, 2013/02/13
- Re: [O] orgstruct-mode with custom headline prefix, Sebastien Vauban, 2013/02/13
- Re: [O] orgstruct-mode with custom headline prefix, Achim Gratz, 2013/02/13
- Re: [O] orgstruct-mode with custom headline prefix,
Dr Stephen J Eglen <=
- Re: [O] orgstruct-mode with custom headline prefix, Bastien, 2013/02/22
- Re: [O] orgstruct-mode with custom headline prefix, Stephen Eglen, 2013/02/26
- Re: [O] orgstruct-mode with custom headline prefix, Bastien, 2013/02/26
- Re: [O] orgstruct-mode with custom headline prefix, Stephen Eglen, 2013/02/26
- Re: [O] orgstruct-mode with custom headline prefix, Christopher Schmidt, 2013/02/26