@tcarlsen it seems the extension doesn’t work… fully. In 0.71.0, the event editor:grammar-changed seems to only be called when you actively change the grammar. It doesn’t get called when the initial grammar is detected and set.
@tcarlsen another unfortunate thing is that it seems my entire plugin must be loaded at run-time for it to work, since loading it on first usage will prevent it from ever being assigned the class properly.
It seems that the idea solution would be to create a package which adds support for this, that is always loaded. And then deprecate that package when atom comes out with an official solution.
im in 0.71.0 af its working fine for me. on launch, open file and change panel.
using it in all of my plugins. they all have the keymap `cmd-alt-l. this did’t work before, because the plugin that was loaded last was overwriting the others, but with this module, its working fine for me.
that is correct, and I know is ain’t the prettiest way, but I believe its the way available for now. My guess is that this module is temporarily and the atom team will provide an official way. but until that I’m using this.
A thing Im adding soon is the ability to run it later using the eachEditor function