Add auto-fill support

This inserts a hash at the end of the line, and a backslash at the
beginning of the next, when auto-fill is turned on.