Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting words with flyspell-mode disabled? #106

Open
ghost opened this issue Nov 9, 2022 · 0 comments
Open

Correcting words with flyspell-mode disabled? #106

ghost opened this issue Nov 9, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 9, 2022

Hi!

Thanks for this package! I really enjoy it.

Occasionally I need spell-checking without flyspell-mode. In that case I would use ispell-word. However, I really like the interface of this package and want to use it as a replacement of ispell-word.

I wonder if it is a reasonable goal of this project to provide and maintain some commands that work without flyspell-mode?

Thanks!

PS: Currently flyspell-correct-at-point mostly works without flyspell-mode. However, we need to initialize the spell-checker properly:

diff --git a/flyspell-correct.el b/flyspell-correct.el
index c661340..2992d89 100644
--- a/flyspell-correct.el
+++ b/flyspell-correct.el
@@ -224,6 +224,7 @@ Adapted from `flyspell-correct-word-before-point'."
   (unless flyspell-correct-interface
     (error "Could not correct word because `flyspell-correct-interface' is not set"))
   (let ((res))
+    (ispell-set-spellchecker-params)
     ;; use the correct dictionary
     (flyspell-accept-buffer-local-defs)
     (flyspell-correct--highlight-add)

Besides, flyspell-correct-highlight does not work.

Other public commands probably do not work because they need the overlays of flyspell-mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants