set numbers, and delete trailing whitespace on save