在我的Mac上(Snow Leopard,10.6.8),我正在使用一个修改过的Emacs 24.2版本提供在这里以利用来自下载页面的Emacs Speaks Statistics (ESS)。Emacs可以正常工作,但我还没有能够让拼写检查器起作用。
为了解决这个问题,我正在按照此页面的说明下载flyspell。我将
然后,我通过添加以下内容修改了我的
当我打开一个
为了解决这个问题,我正在按照此页面的说明下载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
时,我可以“自动完成”它(即按下 tab 键会给出正确的 flyspell 选项),但是当我按下 RET
键时,我会得到以下提示:Searching for program: no such file or directory, ispell
brew install ispell --with-lang-en
后,flyspell-mode
成功识别了它。 - metakermit(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
和(setq exec-path (append exec-path '("/usr/local/bin")))
,就像这里建议的那样。 - farenorth