convert tabs to spaces and set smartindent