minad / jinx

🪄 Enchanted Spell Checker
GNU General Public License v3.0
432 stars 21 forks source link

jinx doesn't show suggestions from dictionary #41

Closed zhenwu0728 closed 1 year ago

zhenwu0728 commented 1 year ago

I started to try jinx today but found that when I run jinx-correct there's no suggestions from dictionary and accept and save word as showed in README (see screenshot below).

Screenshot 2023-04-17 at 3 58 19 PM

I use straight.el for pkg management, below is what I use to install jinx

(use-package jinx
  :straight t
  :hook (emacs-startup . global-jinx-mode)
  :bind ([remap ispell-word] . jinx-correct))

I also have enchant and pkgconfig installed.

I'm new to emacs, would be grateful is someone can help me out.

minad commented 1 year ago

You should also install either Hunspell, Aspell and the relevant dictionaries. Enchant uses one either Hunspell or Aspell as backend for English. For example on my system I have libhunspell, hunspell and hunspell-en-us installed. I hope this helps.

zhenwu0728 commented 1 year ago

Thanks for your quick reply! @minad I have both aspell and hunspell installed via homebrew.

minad commented 1 year ago

Okay, so it seems checking works properly? Only the suggestions are missing?

zhenwu0728 commented 1 year ago

Yes, you can see the red underlines in the screenshot.

minad commented 1 year ago

Ah, I got confused. I think the problem is just that you don't use a completion UI like Vertico. You can press ? to show the suggestions in default completion. Alternatively install Vertico and enable vertico-mode.

zhenwu0728 commented 1 year ago

Ah, yes! I just started a vanilla-emacs configuration and haven't got to the completion part. I'll try if that's the problem. Thanks!

minad commented 1 year ago

Okay, let me know how it goes. The Jinx UI is currently non-ideal if you don't use Vertico or a similar UI. Maybe a Transient would be a better fit for Jinx. There are long UI discussions in #9 and #30.