about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-11-08 16:04:20 +0000
committerDavid Morgan <djm_uk@protonmail.com>2024-11-08 16:04:20 +0000
commit48e01bc46ae160e75ace2ee52e366339dcf9e787 (patch)
treece3c10085b69b940b749d9a3f539c90dc71d2207
parent6bbaf876e1fbe7a9a101babb10af287754099910 (diff)
downloaddotfiles-48e01bc46ae160e75ace2ee52e366339dcf9e787.tar.gz
Enable flyspell and improve config
-rw-r--r--.emacs.d/lisp/init-editor.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index b748c31..117c491 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -111,13 +111,14 @@
   :config
   (global-flycheck-mode))
 
-;(use-package flyspell
-;  :custom
-;  (ispell-program-name "aspell")
-;  (ispell-extra-args '("--sug-mode=ultra"))
-;  :hook
-;  (text-mode . (lambda () (flyspell-mode +1)))
-;  (prog-mode . (lambda () (flyspell-prog-mode))))
+(use-package flyspell
+  :diminish
+  :config
+  (when (string-suffix-p "aspell" ispell-program-name)
+    (ispell-extra-args '("--sug-mode=ultra")))
+  :hook
+  (text-mode . flyspell-mode)
+  (prog-mode . flyspell-prog-mode))
 
 (use-feature bookmark
   :custom