From: Matt Lundin <mdl@imapmail.org>
To: Gary Oberbrunner <garyo@oberbrunner.com>
Cc: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: turn headline(s) into plain list?
Date: Sat, 07 May 2011 10:17:25 -0400 [thread overview]
Message-ID: <87liyippca.fsf@fastmail.fm> (raw)
In-Reply-To: <BANLkTin-w6+rP2zvbWic3aLSyhrpT_rLJg@mail.gmail.com> (Gary Oberbrunner's message of "Fri, 6 May 2011 14:39:27 -0400")
Gary Oberbrunner <garyo@oberbrunner.com> writes:
> Is there any way to turn a headline (and its subtree) into a plain
> list (and nested list items)? Or better yet, turn all level N and
> below headlines into plain lists at the corresponding level?
For the latter, you could use org-map-entries:
--8<---------------cut here---------------start------------->8---
(defun org-convert-low-levels-to-list (level)
"Convert headings in file equal or greater than LEVEL to lists.
A numeric prefix argument can be used to set the level. The
default level is three"
(interactive "P")
(let ((level (number-to-string (or level 3))))
(org-map-entries 'org-ctrl-c-minus
(concat "+LEVEL>=" level) 'file)))
--8<---------------cut here---------------end--------------->8---
There is also an FAQ that covers what the other replies have said.
http://orgmode.org/worg/org-faq.html#convert-plain-lists-to-headlines
Best,
Matt
next prev parent reply other threads:[~2011-05-07 14:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-06 18:39 turn headline(s) into plain list? Gary Oberbrunner
2011-05-06 18:55 ` Bernt Hansen
2011-05-06 18:57 ` Juan Pechiar
2011-05-06 19:14 ` Bernt Hansen
2011-05-07 14:17 ` Matt Lundin [this message]
2011-05-07 14:20 ` Matt Lundin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87liyippca.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=garyo@oberbrunner.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.