How can I insert a number sequence with the multiple-cursors
package in Emacs?
For example:
aa| aa1
aa| => aa2
aa| aa3
Use M-x mc/insert-numbers
. By default, it inserts 0
for the first cursor, 1
for the second cursor etc, but you can change this by using a numeric prefix argument. So to get 1, 2, 3 as in your example, use C-u 1 M-x mc/insert-numbers
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With