I sometimes get a file downloaded and launched using a local editing application, but the file extension either gets mangled, or converted to .txt (added to the end).
In VIM they had a way to deal with this, which was to look for a certain pattern in the file that could override some settings:
// vim: set ft=yacc:
Is there a way I can do this in Atom? The server I’m using insists on downloading my: code.y file as code.y.txt and then Atom does not want to load it using the correct file type.
I checked into this briefly, and I did not see a way for Atom to distinguish “.y.txt” as a different file type than “.txt”.
(Not just with .y files… also .xml.txt and .js.txt happens often)
Any comments/help to do this better? Manually switching file types is a pain…