Search code examples
emacsorg-mode

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


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?


Solution

  • Similar to sanityinc's above, the solution I've adopted is to...

    1. Move cursor to *TOMORROW
    2. Demote it to ** with M-right
    3. Move cursor up to TODO item 2
    4. Pull it down beneath **TOMORROW with M-down
    5. Return cursor to **TOMORROW and re-promote it with M-left

    Constructing a macro for this would probably be better, but it's intuitive and not as bad as it looks. Still, it would be more convenient if C-M-down or something did this.