enable indent according to file type