Bind indent-dwim in prog-mode-map.