summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/mm-spellcheck.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-21 12:33:51 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-21 12:33:51 +0200
commitf5632a29175f7bfc64d36dc2afdb42e92f421876 (patch)
tree21492437deeef89d7e54f002df9ec99ac01c7d28 /.config/emacs/modules/mm-spellcheck.el
parent997140692fbd58494ac172ee507bb5e218595083 (diff)
emacs: Configure spell checking
Diffstat (limited to '.config/emacs/modules/mm-spellcheck.el')
-rw-r--r--.config/emacs/modules/mm-spellcheck.el24
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/emacs/modules/mm-spellcheck.el b/.config/emacs/modules/mm-spellcheck.el
new file mode 100644
index 0000000..95db7ac
--- /dev/null
+++ b/.config/emacs/modules/mm-spellcheck.el
@@ -0,0 +1,24 @@
+;;; mm-spellcheck.el --- Spell checking configuration -*- lexical-binding: t; -*-
+
+;;; ISpell Spell Checking
+
+(use-package ispell
+ :hook (flyspell-mode . ispell-minor-mode)
+ :custom
+ (ispell-program-name "hunspell")
+ (ispell-local-dictionary "en_US")
+ (ispell-local-dictionary-alist
+ '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[’']"
+ nil ("-d" "en_US") nil utf-8)))
+ (ispell-hunspell-dictionary-alist ispell-local-dictionary-alist))
+
+
+;;; On-The-Fly Spell Checking
+
+(use-package flyspell
+ :defer t
+ :config
+ ;; I use ‘C-,’ for ‘emmet-expand-line’
+ (keymap-unset flyspell-mode-map "C-," :remove))
+
+(provide 'mm-spellcheck)