0

I encounter many situations where I'd like to use mc/mark-next-lines but I don't know how to change the number of cursors. When I do C-u 2 mc/mark-next-lines I get 7 cursors instead of 3.

It would be neat if I could pass a two to this command to get 2 cursors. I don't see any sense in that bevhaviour.

3
  • 1
    Shouldn't you use mc/mark-next-like-this? If no region, marks next lines depending on argument.
    – Juancho
    Commented Sep 26, 2016 at 20:40
  • this is the command I was looking for. I wouldn't have expected this functionality with this name. thx !
    – bertfred
    Commented Sep 26, 2016 at 21:05
  • @Juancho: Please post your comment as an answer. OP: Please consider accepting that answer.
    – Drew
    Commented Sep 26, 2016 at 21:09

1 Answer 1

1

The function you are looking for is mc/mark-next-like-this.

If you have no active region, then it will select one (or more) extra lines.

Documentation:

Find and mark the next part of the buffer matching the currently active region If no region is active add a cursor on the next line With negative ARG, delete the last one instead. With zero ARG, skip the last one and mark next.

I have it bound to C-x x.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.