QBobWatson / poporg

Emacs programming tool for editing strings or comments in Org mode or any other text mode
GNU General Public License v3.0
91 stars 9 forks source link

Auto insert a single white space in front of every line after editing in poporg #1

Closed kaushalmodi closed 10 years ago

kaushalmodi commented 10 years ago

Hi,

In verilog-mode, commented lines begin with //.

After editing the comment in poporg, would it be possible to add a single white space in front of each line (after the comment character) so that the poporg formatted line looks like // Some comment instead of //Some comment ?

QBobWatson commented 10 years ago

Poporg doesn't try to make that kind of formatting decision for you. The way to do this kind of thing is to start writing the comment:

// S

then enter Poporg. It will see that there is a consistent prefix //[space] before every nonempty comment line (of which there is only one) and will insert that prefix after every subsequent nonempty line.

Is that the behavior you were looking for?