comment-dwim
(commend-do-what-I-mean, usually M-;) works well. It:
- appends spaces at the end of the line until at least some column is reached,
- if the preceding line also had a comment tailing the code, aligns the comment character, and
- inserts the comment character for the mode, followed by one space.
In Python one feature is missing to comply with the stringent rules:
- at least two spaces must separate code from the trailing comment.
How can I configure comment-dwim
to leave at least two spaces in python-mode?