emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] turn headline(s) into plain list?


From: Matt Lundin
Subject: Re: [O] turn headline(s) into plain list?
Date: Sat, 07 May 2011 10:17:25 -0400
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)

Gary Oberbrunner <address@hidden> 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



reply via email to

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