【发布时间】:2010-09-27 16:06:07
【问题描述】:
我需要在 emacs/w32 上安装/运行 flyspell 模式。
我从this site 安装了ispell for windows,然后我按照here 中写的程序进行操作。
- 我下载了 flyspell-1.7a.el 将其重命名为 flyspell.el,并将其复制到 load-path 目录。
- 我修改了 .emacs
但是,当我使用 flymode 运行 emacs 时,出现以下错误。
(error "Autoloading failed to define function turn-on-flyspell")
可能出了什么问题?
ISPELL 的解决方案
这是 win32 的问题,应该使用与 emacs/win32 一起工作的那个,如 the book of emacs 中所述。
- 从site 之一下载ispell.zip。
- 将ispell.exe 复制到PATH 目录,将英文词典复制到主目录。
使用 ASPELL 的解决方案
vedang 用 aspell at this post 给出了更好的答案。
它有 Windows 安装程序,在here 中安装字典。在 .emacs 中添加以下行对我来说效果很好。
(自定义设置变量 '(ispell-dictionary "英国") '(ispell-program-name "H:\\bin\\aspell\\bin\\aspell.exe"))【问题讨论】: