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
时,我可以“自动完成”它(即,通过按下标签,它给了我正确的flyspell选项),但是当我按下时,我会得到:
RET
this问题或这个问题上没有提出的解决方案,所以我不确定这里的问题是什么。有人有想法还是以前遇到过这个问题?
请,请阅读emacs本身提供的文档,然后再尝试从随机网站进行任意说明。 Emacs 24.2包括Flyspell。 您必须明确安装它。 如果您这样做,那就删除,也就是说,从
Searching for program: no such file or directory, ispell
删除flyspell.el
。 充其量,完全删除/Applications/Emacs.app/Contents/Resources/site-lisp
,然后重新安装它,从头开始。
否,Flyspell需要一个拼写检查工具,该工具不包含在Emacs中。 错误消息告诉您您没有安装此类工具。
您需要安装eplel
SpellChecker。 您可以使用 -homebrew安装它。
i使用/Applications/Emacs.app
和brew install aspell
ispell
aspell
下载ispell(
Http://www.ssc.wisc.edu/~dvanness/ispell.htm
)在我路径中的文件夹中的unzip内容(即窗口或 C:\ Windows \System 下载aspell(Http://aspell.net/win32/) 完整下载。请参阅页面上的链接。 (是否需要 我不确定是否iSpell)
添加下面显示的代码到您的init.el文件