emacs - lists

How to make an ordered list out of a paragraph? Insert dynamically generated numbered lists in emacs.

  1. Move to the beginning of first line you want. Press Ctrl+Space (set-mark-command) to mark cursor position. Move cursor to the beginning of the last line. M-x rectangle-number-lines

  2. Use org-mode (and make sure evil-mode is not active)

    Select the region and do C-c - (hyphen). This will make the paragraph into an unordered list.

    Now, we can convert this unordered list into a list of different style. How to change the style of lists?

    Select the list and use the org function Alt x org-cycle-list-bullet The shortcut for this is, use Shift -> (right arrow) or Shift <- (left arrow)

  3. Sometimes, ordering a list with Alt up arrow or Alt down arrow will also help.


Links to this note