Emacs找不到flyspell / ispell [英] Emacs cannot find flyspell/ispell
问题描述
为了纠正这一点,我遵循此页面下载flyspell。我将 flyspell.el
文件复制到我的 /Applications/Emacs.app/Contents/Resources/site-lisp
目录中,这显然是我的emacs加载路径的目录(注意,例如, auctex.el
文件位于该目录中)。
然后,我修改了我的 .emacs
文件,方法是添加:
t
(自动加载'flyspell-delay-commandflyspell延迟命令)t
(自动加载'flyspell模式flyspell即时拼写检查器
(autoload'tex-mode-flyspell-verifyflyspellt)
(add-hook'LaTeX-mode-hook'turn-on-flyspell)
当我打开一个 .tex
文件,并使用 Mx flyspell-mode
,我可以自动完成它(即通过按Tab键给我正确的flyspell选项),但是当我按 RET
我得到:
搜索程序:没有这样的文件或目录,ispell
无在此问题中提供的解决方案或这个问题工作,所以我不知道什么问题在这里有人有想法或以前遇到过这个问题吗?
请您阅读 Emacs本身在尝试来自随机网站的任意指令之前。
Emacs 24.2包括Flyspell。您必须不显式安装它。如果这样做,请撤消这一点,即从 /Applications/Emacs.app/Contents/Resources/site-lisp中删除
flyspell.el
/ code>。完全删除 /Applications/Emacs.app
,然后重新安装,从头开始。
然而,Flyspell需要一个拼写检查工具,它不包括在Emacs中。错误消息告诉您您没有安装此类工具。
您需要安装 ASpell 拼写检查。在OS X上,最好的方式是通过软件包管理器自制软件进行安装,即 brew install aspell --with-lang-en
。
On my Mac (Snow Leopard, 10.6.8), I'm using a modified version of Emacs 24.2 provided here to utilize Emacs Speaks Statistics (ESS) from the downloads page. Emacs works, but I haven't yet been able to get a spell checker to work.
To rectify this, I'm following the instructions from this page to download flyspell. I copied the flyspell.el
file into my /Applications/Emacs.app/Contents/Resources/site-lisp
directory, which is apparently the directory of my emacs load path (note that, for instance, the auctex.el
file is located in that directory).
Then, I modified my .emacs
file by adding:
(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)
When I open a .tex
file, and use M-x flyspell-mode
, I can "auto-complete" it (i.e. by pressing tab it gives me the correct flyspell options) but when I press RET
I get:
Searching for program: no such file or directory, ispell
None of the solutions posed in this question or this question worked, so I'm not sure what the issue is here. Does anyone have ideas or has encountered this problem before?
Please, please read the documentation provided by Emacs itself before trying arbitrary instructions from random websites.
Emacs 24.2 includes Flyspell. You must not explicitly install it. If you do so, undo this, that is, delete flyspell.el
from /Applications/Emacs.app/Contents/Resources/site-lisp
. At best, delete /Applications/Emacs.app
completely, and re-install it, to start from scratch.
However, Flyspell needs a spell checking tool, which is not included in Emacs. The error message tells you that you have no such tool installed.
You need to install the ASpell spell checker. On OS X, the best way is to install it via the package manager homebrew, i.e. brew install aspell --with-lang-en
.
这篇关于Emacs找不到flyspell / ispell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!