emacs - lists
Table of Contents
How to make an ordered list out of a paragraph? Insert dynamically generated numbered lists in emacs.
-
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 -
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-bulletThe shortcut for this is, useShift ->(right arrow) orShift <-(left arrow) -
Sometimes, ordering a list with
Alt up arroworAlt down arrowwill also help.