I would like to use Emacs to edit two columns of text side by side in one buffer with one column for source and another for comments, something like this.
int main() { | Comment line 1
print... | Comment line 2
} | Comment line 3
Automatic width correction would be nice too. Is there any possibility?
I believe two-column mode does what you want, though it's a little tricky to use.
Move your cursor to the point just before the |
and type C-x 6 s, which should split into two buffers where you want. And when you're done type C-x 6 1.
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