emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Samuel Wales <samologist@gmail.com>
Cc: maurizio.vitale@polymath-solutions.com, emacs-orgmode@gnu.org
Subject: Re: orgstruct minor mode
Date: Sat, 25 Jul 2009 20:21:35 -0400	[thread overview]
Message-ID: <87vdlgi99s.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <20524da70907251651o7ace016do41fbbdb84486dbd3@mail.gmail.com> (Samuel Wales's message of "Sat, 25 Jul 2009 16:51:05 -0700")


> Maurizio Vitale
> <mav@cuma.i-did-not-set--mail-host-address--so-tickle-me> writes:

> Is anybody working on making orgstruct work with programming modes (or
> other modes that require the org "markup" to be hidden in comments)?


Samuel Wales <samologist@gmail.com> writes:

>> It might be nice to have these solutions in one place.

Yes, an overview/tutorial of the various options would be good to have.

>>
>> I know of hideshow, hideshow-org, the email thread,
>> outline-minor-mode plus regexp fixes, orgstruct, orgstruct++,
>> orgtbl, and org-babel so far.

[One obvious point for the record -- embedding code in org files is not
a mutually exclusive alternative to the others: after C-c ' the code is
edited in a language major mode buffer in which the other solutions
might be used for folding / structuring]

I'll add Carsten's outline-magic.el to that list.

http://staff.science.uva.nl/~dominik/Tools/outline-magic.el

Personally I've been using plain outline-minor-mode for code folding. I
haven't used outline-magic, but it seems like perhaps I should. Is
anyone out there currently using it?

Dan

>>
>> I guess there are several categories.  This is very rough.
>>
>>   1) code folding (e.g. hiding the contents of a defun)
>>   2) as much of org as possible without changing the
>>      behavior of the mode itself too much.  plain lists and
>>      headlines can go inside comments or docstrings.
>>   3) literate programming.  compile in two steps:
>>      compile from org and compile to binary.
>>
>>
>> _______________________________________________
>> 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

      parent reply	other threads:[~2009-07-26  0:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-21  0:16 orgstruct minor mode Maurizio Vitale
2009-07-21  2:14 ` Dan Davison
2009-07-25 23:51   ` Samuel Wales
2009-07-25 23:52     ` Samuel Wales
2009-07-26  0:21     ` Dan Davison [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vdlgi99s.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=maurizio.vitale@polymath-solutions.com \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).