add scala support and fix modelines