Emacs cannot find flyspell/ispell

依然范特西╮ 提交于 2019-12-02 22:00:05
lunaryorn

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. You can install it with homebrew with brew install aspell.

Lincoln Randall McFarland

I used homebrew to install ispell and apsell and would get which ever one I set in ~/.emacs with

[iMac ~]$ cat .emacs
(setq ispell-program-name "/usr/local/bin/aspell")

There is a similar discussion of this here

On windows I had to do the following to start Ispell process:

  1. downloaded ispell (http://www.ssc.wisc.edu/~dvanness/ispell.htm)
  2. Unzip content in a folder that is in my path (i.e. Windows or c:\windows\system
  3. download aspell (http://aspell.net/win32/)- get the full download. see the link on the page. (whether you need ispell or not, I am not sure)
  4. Add the code shown below to your init.el file

  5. Run aspell installer

  6. Start emacs again, the error should not come up.

    (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"
    

You many not have to do all the above but this is what worked for me on Emacs running on Windows 7.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!