convert tabs to spaces automatically for some modes