d12frosted / flyspell-correct

Distraction-free words correction with flyspell via selected interface.
Other
200 stars 14 forks source link

Auto correct minor mode #18

Closed d12frosted closed 8 years ago

d12frosted commented 8 years ago

Inspired by flyspell-popup-auto-correct-mode.

TODO:

d12frosted commented 8 years ago

Wow. I use it and... actually hate it. But that's probably because of pretty low delay.

I've tested it only with ivy interface. And suspect that popup interface might be buggy.

Also make sure that this mode has it's own interface variable to be used instead of default. When mode variable is nil default is used.

P. S. CC @syl20bnr 💃

d12frosted commented 8 years ago

About delay - I see that some people are using 0.8 as delay. So probably it's just me. So I'll leave 1.6.

d12frosted commented 8 years ago

Ok, so now it's possible to override interface for auto correct mode. For example,

(flyspell-correct-auto-mode)
(setq flyspell-correct-interface #'flyspell-correct-ivy)
(setq flyspell-correct-auto-mode-interface #'flyspell-correct-popup)

When you manually call flyspell-correct-[previous-]word-generic it uses ivy as interface. But when it's called automatically, popup interface is used.