Is there a function to convert between numbered and unordered lists in org-mode? The lists may or may not be nested.
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-cycle-list-bullet, depending on context.
org-cycle-list-bullet, in turn, does the following according to
(org-cycle-list-bullet &optional WHICH)
Cycle through the different itemize/enumerate bullets. This cycle the entire list level through the sequence:
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.
org manual node on plain lists
for more details.
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
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
C-c C-c at the first line "- a".
Numbered list becomes unordered list.
- a - b - c
I hope it works.
You can use shift→
S-<right> in Emacs notation.) This is bound to
org-shiftright, which will automatically do the right thing for your entire list if you're on any of the items. Press it multiple times to cycle through all possible list styles. And
S-<left> goes the other way :)