summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-23 07:51:45 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-23 07:51:45 -0700
commitf126726c93fda8d38b22087b560ce28a64ad9f64 (patch)
tree9f05a67ba6be368a4d53a31986856f04b9134086
parentmore cleanup (diff)
downloademacs.d-f126726c93fda8d38b22087b560ce28a64ad9f64.tar.gz
use aspell for spell checking
-rw-r--r--config/init-osx.el4
-rw-r--r--config/init-writing.el1
2 files changed, 4 insertions, 1 deletions
diff --git a/config/init-osx.el b/config/init-osx.el
index a9fe148..175ffbd 100644
--- a/config/init-osx.el
+++ b/config/init-osx.el
@@ -21,7 +21,9 @@
   :demand t
   :if (memq window-system '(mac ns))
   :config
-  (exec-path-from-shell-initialize))
+  (exec-path-from-shell-initialize)
+  :custom
+  (exec-path-from-shell-variables '("ASPELL_CONF")))
 
 (provide 'init-osx)
 
diff --git a/config/init-writing.el b/config/init-writing.el
index 578ad86..9cd3370 100644
--- a/config/init-writing.el
+++ b/config/init-writing.el
@@ -17,6 +17,7 @@
 	 (prog-mode . flyspell-prog-mode))
   :diminish flyspell-mode
   :custom
+  (ispell-program-name "aspell")
   (ispell-silently-savep t)
   (ispell-local-dictionary "en_US")
   (ispell-extra-args '("--camel-case")))