Setting some modes according to file extention.