company-ispell
can complete a word at point, but what if you want
to use Company to list the possible corrections for spelling?
As an added bonus, is there any way to integrate this into Flyspell?
There are already some different ways to show ispell correction candidates, I guess you just meant correcting misspelled word in a popup menu, not company-mode itself.
To correct misspelled word at point, both built-in M-$ (ispell-word
) and C-c $ (flyspell-correct-word-before-point
) works great, the former uses a buffer to show correction choices, while the later uses a GUI popup menu:
It seems that back in 2016 Henry Weller implemented a working company
back-end for flyspell
, as it was discussed here. The source-code is not available on the link there anymore, but I've contacted Henry if he still happens to have it somewhere.
I was told that the code last worked with Emacs 26.3, but since then the dump-emacs
function has been deprecated, and the code would need to be upgraded accordingly.
I've uploaded the code here. Have a look, and get in touch if would like to contribute!
ispell-command-loop
to usecompany-mode
. There doesn't seem to be an easy way to replace its prompting logic.popup.el
to display corrections: emacswiki.org/emacs/FlySpell#toc11 Maybe someone familiar with company can hack it togther.