On his Emacs Rocks twitter feed, Magnor Sveen announced some useful additions to his
multiple-cursors package. If you active regions with
multiple-cursors you can now perform the following operations on them
- Reverse the lines in the regions
- Sort the regions
- Insert line numbers
He maps these to
These additions bring to
multiple-cursors functionality that exists in other Emacs packages such as
CUA-rectangle-mode and thus makes it even more of a go to package for efficient text manipulation.
I’m still experimenting with it but so far I really like it. If you’re using the
multiple-cursors package (and if you aren’t you really should be) you’ll get the new functions the next time you update but you’ll need to set key sequences for them. I like the ones that Sveen is using but, of course, you can choose your own.