10

Is there a function to convert between numbered and unordered lists in org-mode? The lists may or may not be nested.

17

You can use the function org-ctrl-c-minus, bound by default to (you guessed it) Control-c--, to cycle through the bullet types. The doctstring reads:

Insert separator line in table or modify bullet status of line. Also turns a plain line or a region of lines into list items. Calls org-table-insert-hline, org-toggle-item, or org-cycle-list-bullet, depending on context.

org-cycle-list-bullet, in turn, does the following according to the docstring:

(org-cycle-list-bullet &optional WHICH)

Cycle through the different itemize/enumerate bullets. This cycle the entire list level through the sequence:

- -> + -> * -> 1. -> 1)

If WHICH is a valid string, use that as the new bullet. If WHICH is an integer, 0 means -, 1 means + etc. If WHICH is previous, cycle backwards.

See the org manual node on plain lists for more details.

13

In my org-mode environment, for example, the first state is as followings: unordered list.

- a
- b
- c

Modify the first line as "1. a" as numbered list.

1. a
- b
- c

Now, hit C-c C-c at the first line "1. a". Unordered list becomes numbered list.

1. a
2. b
3. c

Modify the first line as "- a" as unordered list.

- a
2. b
3. c

Now Hit C-c C-c at the first line "- a". Numbered list becomes unordered list.

- a
- b
- c

I hope it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.