Small consistency refactor.
Small autocmd fixes:

- Reset position when editing a commit.
- Automatically remove trailing whitespace when saving certain files.