I’m pretty new to Atom (long time Sublime user/developer), and I’m trying to port
Python Improved to Atom. I created a
.tmbundle and converted it to an Atom package using
apm without any issues. However, in the README, I’d like to give instructions on how to set Python Improved as the default Python syntax — that is, whenever a user opens a
.py file, the syntax is automatically set to Python Improved.
I’ve read through numerous issues, pull requests, and forum posts in search of an answer, but most of what I found was related to adding a new file type to an existing syntax — for example, adding a custom extension like
.xyz to an existing syntax like PHP. That’s not what I want to do. Both Python Improved and the standard Python syntax use the base scope
source.python, so I can’t just do:
'*': 'core': 'customFileTypes': 'source.python': [ 'py' ]
So, how do I set Python Improved to be the default Python syntax, and allow users to change to another syntax if they wish?