Announcing company-spell: a hackable minimalist framework for spellchecking

enzu.ru
2 min readAug 12, 2023
company-spell providing in buffer spellchecking

Like many Emacs users, I use Company for my in buffer text completion. Company comes with company-ispell, that uses standard Emacs machinery for spellchecking.

Although this approach is robust and featureful, it does not allow you to cultivate a separate approach for your in buffer spellchecking. I wanted something a bit more customizable.

So I have developed company-spell which directly uses your spellcheck program with no questions asked, and is compatible with ispell, aspell, and hunspell. I have not discovered any notable performance issues with this approach, and in fact, I have anecdotally found it to be faster than company-ispell (no promises though!). aspell is the default because I find that it returns the best results.

If you are happy with company-ispell, this package is not for you, and you are encouraged to stick with company-ispell.

company-spell should just work out of the box, but there are a few variables that you can hack on. Due to this minimalist approach, multilingual support is probably not very good, as company-spell doesn’t keep track of which dictionary you would like to use. Standard Emacs ispell is better for multilingual support.

company-spell has been published to MELPA. Installation and usage instructions are available on its homepage.

--

--

enzu.ru

Learning content for the GNU operating system and Lisp user space, developed through my eponymous charity (https://enzu.ru)