4

In the following minimal example:

* Heading - Item Foo #+BEGIN_SRC sh echo "Hello World!" #+END_SRC - Item Bar 

It is impossible to move the bar item above foo using org-move-item-up. Is there a way around this?

1 Answer 1

9

It is possible: be careful to indent the code block under the list:

* Heading - Item Foo #+BEGIN_SRC sh echo "Hello World!" #+END_SRC - Item Bar 
2
  • 1
    Simple indeed. Is there a way to do the indentation automatically? Commented Dec 6, 2014 at 19:10
  • 1
    Yes, use org-return-indent, which is bound to C-j (to be confirmed, yet I don't think I overwrote it). its doc says: "Goto next table row or insert a newline and indent. Calls org-table-next-row' or newline-and-indent', depending on context." Commented Dec 8, 2014 at 10:49

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.