Search code examples
emacs

Edit multiple lines at once in Emacs


I believe TextMate has a mode where if you start typing, the same thing will be entered on all the lines you've selected. Is there something similar to this in Emacs?

I'm guessing there's a way rectangles can help me, but I'm not sure how...


Solution

  • It's as simple as this: C-x r t. Some examples are here.