Horizontal scroll margin

I want to set the horizontal scroll margin in Atom. Default seems to be 6. The atom-scrolloff package did the trick until Atom version 1.34.0.

I have tried this in my init.coffee:

atom.workspace.observeTextEditors (editor) -> editor.setHorizontalScrollMargin(1)

but it doesn’t work.