From 8f17afeae4d22ed506f820c35e2007a2dbd47843 Mon Sep 17 00:00:00 2001
From: Case Duckworth
Date: Thu, 22 Jul 2021 21:15:56 -0500
Subject: Better configure ispell/hunspell

---
 init.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/init.el b/init.el
index 00604d0..98b64ab 100644
--- a/init.el
+++ b/init.el
@@ -422,7 +422,14 @@ like a dumbass."
 (setup flyspell
   (setq-default ispell-program-name "hunspell"
                 ispell-dictionary "en_US"
-                ispell-personal-dictionary "~/.hunspell_personal")
+                ispell-personal-dictionary "~/.hunspell_personal"
+                ispell-local-dictionary-alist '(("en_US"
+                                                 "[[:alpha:]]" "[^[:alpha:]]"
+                                                 "[']" nil
+                                                 ("-d" "en_US") nil utf-8)))
+  (when (boundp 'ispell-hunspell-dictionary-alist)
+    (setq-default
+     ispell-hunspell-dictionary-alist ispell-local-dictionary-alist))
   (:needs ispell-program-name) ; don't proceed if not installed
   
   (unless (file-exists-p ispell-personal-dictionary)
-- 
cgit 1.4.1-21-gabe81