Set language syntax per project or folder? (Atom on Windows)


#1

Hi all,
first post here. Started to work with atom. So I installed language-logstash and language-icinga2 package. Both have “conf” as filetype. I’ve got a project with icinga2 configs and a project with logstash configs. Unfortunately, in the icinga2 project there is always the logstash syntax auto detected. When I change it in the file but work with another file, it is not saved. So is there a way to set a syntax for a whole project or folder in the project?


#2

There is no way built into Atom, but you could use an init.coffee script to check the path of the project folder and then set the grammar.