Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move sub-headings to under other headings in emacs org-mode

Tags:

My list looks like this:

* TODAY ** TODO Item 1 ** TODO Item 2 * TOMORROW ** TODO Item 3 ** TODO Item 4  

...as a single list, based on some advice I received here. I'd like to move TODO Item 2 from under TODAY to under TOMORROW.

The manual says:

M-up M-down Move the item including subitems up/down (swap with previous/next item of same indentation). If the list is ordered, renumbering is automatic.  

But while I can change the places of Item 1 and Item 2, I cannot move Item 2 outside of the Today heading---I cannot move it down under TOMORROW to precede Item 3. The buffer tells me:

cannot move past superior level or buffer limit org mode

What is the keystroke that lets me move sub-items "past superior level" to under new headings?

like image 514
Mittenchops Avatar asked Mar 21 '12 20:03

Mittenchops


People also ask

How do I use org Mode in Emacs?

Emacs does not actually understand you are editing an Org document, yet. To enable Org mode on your current document, type M-x org-mode which will enable the Org mode on the current document. Those are minuses, not underscores.

Does Org mode come with Emacs?

Emacs has included Org Mode as a major mode by default since 2006. Bastien Guerry is the current maintainer, in cooperation with an active development community. Since its success in Emacs, some other systems now provide functions to work with org files.


1 Answers

You could use C-c C-w (org-refile) and specify the heading where you want to send your TODO item.

As you'll see in this function's documentation (C-h forg-refile), you can customize the org-refile-targets and org-reverse-note-order variables to determine the list of possible target headings and the position of the moved item within the target heading.

like image 146
François Févotte Avatar answered Sep 28 '22 05:09

François Févotte