@sindresorhus done.

I've replaced that with `atom.workspace.getActiveEditor().getGrammar().name` (although, I don't know how good their detection is).