From f01eae773a34f743ae0f3437c0de1ee2222488c0 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 30 Jan 2021 11:26:22 -0600 Subject: Configure spell checking On windows, it'll need some massaging. --- config.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'config.org') diff --git a/config.org b/config.org index 5debae1..e24fddf 100644 --- a/config.org +++ b/config.org @@ -1527,6 +1527,22 @@ don't know if it's that useful. (add-hook 'text-mode-hook #'hook--wc-mode-no-keybinds) #+end_src +** Spell checking + +Let's use =hunspell=. + +#+begin_src emacs-lisp :noweb-ref packages + (with-eval-after-load "ispell" + (setenv "LANG" "en_US") + (setq-default ispell-program-name "hunspell" + ispell-dictionary "en_US") + (ispell-set-spellchecker-params)) + + (setq ispell-personal-dictionary "~/.hunspell_personal") + (unless (file-exists-p ispell-personal-dictionary) + (write-region "" nil ispell-personal-dictionary nil 0)) +#+end_src + * Programming ** Comments -- cgit 1.4.1-21-gabe81