Add function to setup trim trailing whitespace functionality

This adds the missing trim trailing whitespace functionality using delete-trailing-whitespace function available since Emacs 21.