Offload deleting trailign whitespac, indent on newline, and clang formatting to programming mode hooks.