It would be nice to be able to run an auto-formatter on save for several languages. I don't think there's a way to execute something as a hook when saving a file. This hook should probably be a property of the "file type" and Kate should avoid "file has changed on disk" warnings but re-read the file automatically if such a hook has been set.
*** Bug 442469 has been marked as a duplicate of this bug. ***