[英]Correctly saved words with german Umlaute in personal dictionary of hunspell not recognised as correct spelling by emacs ispell or flyspell
[英]Emacs cannot find flyspell/ispell
在我的Mac(Snow Leopard,10.6.8)上,我使用此处提供的Emacs 24.2的修改版本来从下载页面使用Emacs Speaks Statistics(ESS)。 Emacs有效,但我还没有能够使用拼写检查器。
为了解决这个问题,我按照本页的说明下载了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
文件,并使用Mx flyspell-mode
,我可以“自动完成”它(即通过按Tab键给我正确的flyspell选项)但是当我按下RET
我得到:
Searching for program: no such file or directory, ispell
在Windows上我必须执行以下操作才能启动Ispell进程:
将下面显示的代码添加到init.el文件中
运行aspell安装程序
再次启动emacs,错误不应该出现。
(require 'package) (add-to-list 'package-archives '("MELPA Stable" . "http://stable.melpa.org/packages/") t) (package-initialize) (package-refresh-contents) (package-install 'flycheck) (global-flycheck-mode) (use-package flycheck :ensure t :init (global-flycheck-mode t)) (setq ispell-program-name "C:\\\\Program Files (x86)\\\\Aspell\\\\bin\\\\aspell.exe"
你们很多人不必完成上述所有工作,但这对我在Windows 7上运行的Emacs起了作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.