I don’t want any of the “intellisense” popups, since it auto-inserts wrong words when I type fast, it’s quite annoying but I can’t seem to get rid of it.
#2 Followup/side question:
What I would like though, is a way to enable Thesaurus/dictionary for the word I’m on. With some kind of command or leader key combination (no popups while typing).
I’m sorry, I don’t understand this stuff at all. I’m super new to Doom and to Emacs.
I just want to disable the spell checking, but obviously I do not want to disable all LSP intellisense. As far as I understand this is the “same thing” and something called company takes care of it?
I have no clue what packages are responsible for what
I don’t know when to “unload”, when to “unhook” and when to set which variable, and for what
Reading the documentation within Emacs really doesn’t help me at all.
How do I know what to search for? For example: how do I know that I should search for ‘set-company-backend’ and not something with ‘ispell’ or ‘flycheck’ or the other stuff that’s included? How do I know to search for help-function rather than help-variable or help-packages? I’m super lost.
With everything I could find, I have all this in my config, and it still doesn’t work:
I’ve gone through the motions of sucessfully disabling spellcheck multiple times, but at a certain point it keeps coming back!
It’s like magic. And quite annoying, unfortunately.
Is it possible that it has something to do with something called “Buffer Local” Variables? And if so, where would they come from?
Any way to figure out which settings actually work, and which are placebo?
Now it seems that when my computer (macOS) comes out of sleep mode, the thing is reset. Some kind of local buffer variable overrides my config.
I get the spelling popups.
When I hit doom reload (spc h r r) it reloads my config and the spelling intellisense disappears again as intended.
I do not understand what’s happening at all, been through tons of documentation and have reinstalled Emacs completely as well.
I am still a bit confused. If you want to disable spellcheck, have a look at flyspell. Company mode is about code/text completions.
With respect to your problem with completions using company, I have dug around a bit. The completion backends are stored in +company-backend-alist, which is changed using set-company-backend, as you do. The backends are then set whenever the major mode is changed. The respective hook is initialized here:
In the first post I made here, I added a little screenshot.
There you can see that there’s some kind of popup which is auto-correcting my words at times.
I don’t know if it’s spell check or something else.
It looks like it analyzes my buffer to suggest words, and I believe it’s company doing this.
Yesterday I was reading some more about doom configuration and it seems that the use-package! I was using is a common anti-pattern. I believe that this is why I had to reload my config before it works.
Thank you for this! Not sure why this had to be so hard, it’s a very simple question. I don’t want to stop using company altogether, it’s great for helping me code, I just don’t want it telling me what words I should use when I’m writing in my own language :) I know better than you, computer!