How to insert a number sequence in Emacs with multiple cursors?

How to insert a numeric sequence with multiple-cursors in Emacs?

For instance:

 aa| aa1 aa| => aa2 aa| aa3 
+5
source share
1 answer

Use Mx mc/insert-numbers . By default, it inserts 0 for the first cursor, 1 for the second cursor, etc., but you can change this using a numeric prefix argument. So, to get 1, 2, 3, as in your example, use Cu 1 Mx mc/insert-numbers .

+6
source

All Articles