Fix trailing whitespace trimming

Apply the trailing whitespace setting to all buffers it is relevant to,
not just the last opened one.
Merge pull request #15 from kopischke/trim-whitespace-fix

Fix automatic trailing whitespace trimming only applying to last loaded buffer