http://www.perlmonks.org?node_id=1171720


in reply to [emacs] RFC live formating / tidying while I type

Sounds like a job for aggresive-indent-mode!