Emacs 找不到 Flyspell/ispell

2024-04-16

在我的 Mac(Snow Leopard,10.6.8)上,我使用的是 Emacs 24.2 的修改版本此处提供 http://vgoulet.act.ulaval.ca/en/emacs/mac/利用 Emacs Speaks Statistics (ESS)下载页面 http://ess.r-project.org/index.php?Section=download。 Emacs 可以工作,但我还无法让拼写检查器工作。

为了纠正这个问题,我按照以下指示进行操作这一页 http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell.html下载flyspell。我复制了flyspell.el文件到我的/Applications/Emacs.app/Contents/Resources/site-lisp目录,这显然是我的 emacs 加载路径的目录(请注意,例如,auctex.el文件位于该目录中)。

然后,我修改了我的.emacs文件添加:

(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
(autoload 'flyspell-delay-command "flyspell" "Delay on command." t)
(autoload 'tex-mode-flyspell-verify "flyspell" "" t)
(add-hook 'LaTeX-mode-hook 'turn-on-flyspell)

当我打开一个.tex文件,并使用M-x flyspell-mode,我可以“自动完成”它(即通过按选项卡它会给我正确的飞行拼写选项)但是当我按RET I get:

Searching for program: no such file or directory, ispell

中没有提出任何解决方案这个问题 https://stackoverflow.com/questions/8332163/flyspell-doesnt-load-with-latex-file-in-emacs or 这个问题 https://stackoverflow.com/questions/15173004/emacs-how-to-auto-turn-on-flyspell-for-latex-file有效,所以我不确定这里的问题是什么。有没有人有想法或以前遇到过这个问题?


拜托拜托read在尝试来自随机网站的任意指令之前,先阅读 Emacs 本身提供的文档。

Emacs 24.2 包含 Flyspell。你必须not明确安装它。如果这样做,请撤消此操作,即删除flyspell.el from /Applications/Emacs.app/Contents/Resources/site-lisp。最好的办法就是删除/Applications/Emacs.app完全,然后重新安装,从头开始。

然而,Flyspell 需要一个拼写检查工具,而 Emacs 中不包含该工具。错误消息告诉您没有安装此类工具。

您需要安装ASpell http://aspell.net/拼写检查器。你可以安装它homebrew http://mxcl.github.io/homebrew/ with brew install aspell.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Emacs 找不到 Flyspell/ispell 的相关文章

随机推荐