Cleanup semantic, whitespace and auto-complete modes.