Emacs Windows spellcheck - aspell or hunspell

2020-06-03 06:31发布

I use emacs 23.1.50 version on Windows XP operation system. I could not setup hunspell or aspell as part of emacs with the example provided by the emacs wiki. Anyone has working confiugration for windows xp and please help me out.

3条回答
一纸荒年 Trace。
2楼-- · 2020-06-03 06:48
神经病院院长
3楼-- · 2020-06-03 07:01

aspell can be easily installed on windows using cygwin. In the cygwin setup, search for aspell in the search bar and select it for installation. Remember to also select the dictionary you want to install (for the english language - aspell-en). Add the cygwin/bin directory to the load-path in emacs, so that emacs can find the executable when it needs it. Finally, add the following line to your .emacs file:

(setq-default ispell-program-name "aspell")

HTH

查看更多
我只想做你的唯一
4楼-- · 2020-06-03 07:06

I use aspell for spellchecking with emacs on Windows. Looking at my .emacs file I can see these configuration variables.

(custom-set-variables
    '(ispell-dictionary "british")
    '(ispell-program-name "H:\\bin\\aspell\\bin\\aspell.exe"))

I installed aspell with the installation wizard. M-S-$ ispell-buffer flyspell-mode and the like all work correctly for me.

查看更多
登录 后发表回答