12

我在 Windows XP 操作系统上使用 emacs 23.1.50 版本。我无法使用 emacs wiki 提供的示例将 hunspell 或 aspell 设置为 emacs 的一部分。任何人都有适用于 windows xp 的工作配置,请帮助我。

4

3 回答 3

17

我在 Windows 上使用 aspell 对 emacs 进行拼写检查。查看我的.emacs文件,我可以看到这些配置变量。

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

我使用安装向导安装了 aspell。M-S-$ ispell-buffer flyspell-mode等等对我来说都可以正常工作。

于 2010-01-06T11:15:20.663 回答
2

aspell 可以使用cygwin轻松安装在 windows 上。在 cygwin 安装程序中,在搜索栏中搜索 aspell 并选择它进行安装。请记住还要选择您要安装的字典(对于英语 - aspell-en)。将 cygwin/bin 目录添加到 emacs 中的 load-path 中,以便 emacs 在需要时可以找到可执行文件。最后,将以下行添加到您的 .emacs 文件中:

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

高温高压

于 2010-01-07T14:03:26.083 回答
1

http://blog.binchen.org/posts/what-s-the-best-spell-check-set-up-in-emacs.html

它解释了为什么 aspell 更适合程序员。

于 2014-05-01T14:44:36.400 回答