Noticed the default tab-length for Python is 4, while I can’t seem to be able to access it anywhere. My
config.cson doesn’t seem to hold any information regarding language-specific tab lengths. Specifically, I am trying to access the current active Editor’s tab length and what I am doing is essentially:
const tabLength = editor.tabLength ? editor.tabLength : atom.config.get('editor.tabLength');
If there is a more preferred method/best practice, I would love to hear it. I am currently checking manually for Python and assuming tab length is 4 in my package.