The option configure Kate >> Editor Component >> Editing >> Spellcheck >> Automatic spell checking enabled by default seems to be ignored. Reproducible: Always Steps to Reproduce: 1. Under configure Kate >> Editor Component >> Editing >> Spellcheck, enable the option "Automatic spell checking enabled by default" 2. Restart Kate 3. Create a new document 4. Looking at Tools >> Spelling the option "Automatic spell checking" Actual Results: Under the option Tools >> Spelling the option "Automatic spell checking" is not enabled by default and typing mispelled words does not result in them being underlined in red. Expected Results: I expected the option to be enabled on new documents after restarting Kate and for mispelled words to be detected. My katerc file has: [Spelling] backgroundCheckerEnabled=true checkUppercase=true checkerEnabledByDefault=true defaultClient= defaultLanguage=en_US skipRunTogether=false but "checkerEnabledByDefault" does not depend on if the "Automatic spell checking enabled by default" option and is enabled or not.
It seems a bit strange the way it works. Aplying the change in the settings page influenes the global sonet setting, not only kate. The global sonet setting is using QSetting while Kate is trying to read : KConfigGroup configGroup(KSharedConfig::openConfig(), "Spelling"); I don't think kate should write to the global sonet setting... but if that is the wanted behaviour kate should read the QSetting in stead... I think kate should default to using the sonet setting but enable overiding it without changing the sonet setting. Regards, Kåre.
> The global sonet setting is using QSetting while Kate is trying to read : > KConfigGroup configGroup(KSharedConfig::openConfig(), "Spelling"); Is there a work around then? Can I manually add something to katerc, or some other configuration file?
Yes you can add the following to your KF5 katerc: [Spelling] checkerEnabledByDefault=true But be warned. It takes me ~2 minutes to open a session with 340 files when I have that enabled. I need to check this also. Part of the problem is probably that sonnet has moved away from KConfig in the KF5 port and that previously the sonnet configs where saved with the applications own configs and now it saves it in the global config....
This seems to have been fixed some time in the intervening years, automatic spellcheck toggle is working fine and persisting properly. No entries in katerc required - it all looks to route to Sonnet properly now, at least as of 19.04.