Emacs cannot find flyspell/ispell

后端 未结 3 940
春和景丽
春和景丽 2021-02-02 11:50

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

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-02 12:52

    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.

提交回复
热议问题