Álvaro Ramírez tweeted a handy tip that I used to know about but had forgotten:
#emacs multiple cursors + org tables = magic
`mc/insert-numbers’ is bound to # when multiple cursors are active: https://t.co/Okx9sZ2TQW pic.twitter.com/WhMmKwjLMV
— Alvaro Ramirez (@xenodium) March 17, 2019
Lots of tables need a row number and using this tip it’s easy to add them when you’ve finished making the table rather than putting them in as you go along. That’s especially handy if you decide to reorder the rows.
Normally mc/insert-numbers
will start the numbering at 0 but you can change that with a prefix argument. Long ago I mapped that function to Hyper+~ but I like the way Ramírez maps it to #
in the region-bindings-mode-map
. That makes it much more intuitive and easy to remember. Maybe if I’d done that to begin with, I wouldn’t have forgotten about it.