Il 28/04/2017 10:31, Fabrice Popineau ha scritto:
> 2017-04-28 10:16 GMT+02:00 Angelo Graziosi 
> 
>>>
>>
>> I added exactly this:
>>
>> (setenv "DICPATH" "/mingw64/share/hunspell")
>> (setq ispell-program-name "C:/msys64/mingw64/bin/hunspell.exe"
>>        ispell-dictionary "en_US"
>>        ispell-extra-args '("--sug-mode=ultra"))
>>
> 
> 
> You need to restart emacs.

Obviously I did that...

> Setting DICPATH in your shell environment,
> 
> $ export DICPATH=/mingw64/share/hunspell

setting this assumes one starts Emacs from shell (MSYS2/MINGW64),

$ /mingw64/bin/runemacs.exe &

and I did (*)...

> 
> you should get printed results for
> 
> $ hunspell -D

yes, it prints those results... but trying to enable the Flyspell-mode 
in Emacs prints the same error, the first time, then repeating (M-x 
flyspell-mode) it seems to start the process

Starting new Ispell process C:/msys64/mingw64/bin/hunspell.exe with 
en_US dictionary...

but then,

Error in post-command-hook (flyspell-post-command-hook): (error "No data 
for dictionary \"en_US\", neither in ‘ispell-local-dictionary-alist’ nor 
in ‘ispell-dictionary-alist’")

All this seems too complicated to me to have a spell-check working...

Angelo



-----
(*) (getenv "DICPATH") prints "/mingw64/share/hunspell"



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to