Add preferredLineLength methods to Editor Class


preferredLineLength seems to only be used for wrap-guide at this point, however the settings is available in atoms global settings. There are many request for syntax/language specific settings so I created syntax-settings. I was hoping to be able to override preferredLineLength for each grammar, however there is no setPreferredLineLength method available. Could we add it please?

Edit: I realised that soft wrap etc may use this too.


It seems like there is a list of things that need better methods. softTabs only seems to have a toggle method and no set/get, for instance.


The best you can do for now is call atom.config.set('editor.preferredLineLength', someNumber) which will update the default config setting. It’s not the best solution, but it’s the one that will work for now.