reddit / emacs

How can I configure Flyspell to hit enter on a word and get suggestions instead of right click on it?

lord4ris · 2022-06-08 20:29
Note: Spanish speaker here, sorry for the extremely wrong grammar. I used to have an emacs configuration which had that feature, but It was like a happy accident, cuz I don't did it on purpose. I made a clean installation, so now I don't know how to get that feature. I also want to know if there's a way to improve the dictionary, like using the google dictionary or something like that, cuz there are hundreds of words that doesn't even exist on Ispell, and I have to copy and paste my documents to another program to get a better correction.
eli-zaretskii · 2022-06-09 06:18
In a buffer where Flyspell mode is enabled, typing `C-M-i` repeatedly will cycle through possible corrections of the word at point. Is this what you are looking for?
_viz_ · 2022-06-10 05:08
The misspelt word has a keymap property on it, evident because only on the misspelt word does mouse-2 produce the correction menu. If you place the cursor over the word, and say M-x describe-keymap RET, the minibuffer should say the name of the keymap. You can add whatever keybindings to that keymap as you wish.
jimehgeek · 2022-06-11 00:07
Have a look at the [`flyspell-correct`](https://github.com/d12frosted/flyspell-correct) package. In [my config](https://github.com/jimeh/.emacs.d/blob/f8aee359373061707b8c4e2bb23bc8442d8a63f1/modules/spelling/siren-flyspell.el#L30) I have `flyspell-correct-wrapper` bound to `C-/`. As for better dictionaries, about 10 years ago when I first enabled flyspell I read somewhere that `aspell` is better than `ispell` with more and bigger dictionaries. So maybe try `aspell`? I’ve always found it pretty good, and mostly just missing various tech acronyms and such. Also, flyspell-correct does often a save option among its suggestions, so any legit words which are missing are easy to save.
lord4ris · 2022-06-11 05:14
I already use flyspell-correct. I'm trying something more than changing the keybind. I don't remember what I did, but It was pretty cool. About aspell being better than ispell, I think it's true. It's not better than MS word or the chrome dictionary, but better than ispell...