diff options
author | Case Duckworth | 2021-01-30 11:26:22 -0600 |
---|---|---|
committer | Case Duckworth | 2021-01-30 11:26:22 -0600 |
commit | f01eae773a34f743ae0f3437c0de1ee2222488c0 (patch) | |
tree | c6c63426fd9a60c0098e5551bb1bb8e3e7a70330 | |
parent | Add 0x0 (diff) | |
download | emacs-f01eae773a34f743ae0f3437c0de1ee2222488c0.tar.gz emacs-f01eae773a34f743ae0f3437c0de1ee2222488c0.zip |
Configure spell checking
On windows, it'll need some massaging.
-rw-r--r-- | config.org | 16 |
1 files changed, 16 insertions, 0 deletions
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. | |||
1527 | (add-hook 'text-mode-hook #'hook--wc-mode-no-keybinds) | 1527 | (add-hook 'text-mode-hook #'hook--wc-mode-no-keybinds) |
1528 | #+end_src | 1528 | #+end_src |
1529 | 1529 | ||
1530 | ** Spell checking | ||
1531 | |||
1532 | Let's use =hunspell=. | ||
1533 | |||
1534 | #+begin_src emacs-lisp :noweb-ref packages | ||
1535 | (with-eval-after-load "ispell" | ||
1536 | (setenv "LANG" "en_US") | ||
1537 | (setq-default ispell-program-name "hunspell" | ||
1538 | ispell-dictionary "en_US") | ||
1539 | (ispell-set-spellchecker-params)) | ||
1540 | |||
1541 | (setq ispell-personal-dictionary "~/.hunspell_personal") | ||
1542 | (unless (file-exists-p ispell-personal-dictionary) | ||
1543 | (write-region "" nil ispell-personal-dictionary nil 0)) | ||
1544 | #+end_src | ||
1545 | |||
1530 | * Programming | 1546 | * Programming |
1531 | 1547 | ||
1532 | ** Comments | 1548 | ** Comments |