A long, long time ago I was given advice on how to set up a built-in shortcut for simple things like adding a non-breaking space to html.
So I have
atom.workspaceView.command 'editor:insert-nbsp', -> atom.workspace.getActiveEditor()?.insertText(' ')
Which is apparently deprecated. What’s the modern way to do this sort of thing?