Working setup for hunspell in Emacs

前端 未结 3 1633
[愿得一人]
[愿得一人] 2021-02-08 04:46

Does anyone have a working setup for hunspell and Emacs? Simply setting ispell-program-name to hunspell doesn\'t work, the o

3条回答
  •  粉色の甜心
    2021-02-08 05:32

    From https://passingcuriosity.com/2017/emacs-hunspell-and-dictionaries/

    Add

    ;; Set $DICPATH to "$HOME/Library/Spelling" for hunspell.
    (setenv
      "DICPATH"
      "/path/to/hunspell/dictionary")
    ;; Tell ispell-mode to use hunspell.
    (setq
      ispell-program-name
      "hunspell")
    

    into your ~/.emacs.

    My dictionary files were at /usr/share/hunspell.

提交回复
热议问题