summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-03-06 21:14:26 +0100
committerAlan Pearce2023-03-06 21:14:26 +0100
commitf2f59e9796a7321a1f881efa5dbef8ba5e163864 (patch)
treec939916e9eff2dd69c987b2202d18af68984d68c
parent1020410102c4747c7f738590a36dc0cc01bdc2fa (diff)
downloadnixfiles-f2f59e9796a7321a1f881efa5dbef8ba5e163864.tar.lz
nixfiles-f2f59e9796a7321a1f881efa5dbef8ba5e163864.tar.zst
nixfiles-f2f59e9796a7321a1f881efa5dbef8ba5e163864.zip
Emacs: use wucuo instead of flyspell
-rw-r--r--user/emacs/init.el11
-rw-r--r--user/settings/emacs.nix1
2 files changed, 9 insertions, 3 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 54e1222f..f6d3b129 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -943,11 +943,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
               :fringe-face 'flycheck-fringe-info
               :info-list-face 'flycheck-error-list-info)))
 
-(use-package flyspell
-  :ghook 'text-mode-hook
-  :hook (prog-mode . flyspell-prog-mode))
 (setq-default ispell-dictionary "en_GB-ise-w_accents")
 (setq ispell-extra-args '("--sug-mode=ultra" "--camel-case"))
+(use-package flyspell)
 
 (use-package flyspell-correct
   :after flyspell
@@ -957,6 +955,13 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :after flyspell-correct
   :init (progn
           (setq flyspell-correct-interface #'flyspell-correct-avy-menu)))
+(use-package wucuo
+  :ghook ('(prog-mode-hook
+            text-mode-hook)
+          #'wucuo-start)
+  :config (progn
+            (setq wucuo-aspell-language-to-use  "en_GB-ise-w_accents"
+                  wucuo-enable-camel-case-algorithm-p nil)))
 
 (use-package feature-mode
   :config (progn
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index f92366cb..a10898ed 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -175,6 +175,7 @@ in {
         typescript-mode
         undo-tree
         use-package
+        wucuo
         web-mode
         wgrep-ag
         ws-butler