summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-04-25 17:21:20 +0200
committerAlan Pearce2024-04-25 17:21:20 +0200
commit798453ea55052c6af1752c1d6b1243e7c2591afd (patch)
tree11bd68165d8b61df809587b68a1180ca3fa8c5e8 /user
parentc244201a379ecc5353a1b0cc6882ea321fd1233d (diff)
downloadnixfiles-798453ea55052c6af1752c1d6b1243e7c2591afd.tar.lz
nixfiles-798453ea55052c6af1752c1d6b1243e7c2591afd.tar.zst
nixfiles-798453ea55052c6af1752c1d6b1243e7c2591afd.zip
emacs: replace flyspell with jinx (again :^)
Diffstat (limited to 'user')
-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 c8c07aa7..22a9094e 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1030,9 +1030,14 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
 (setq-default ispell-dictionary "en_GB-ise-w_accents")
 (setq ispell-extra-args '("--sug-mode=ultra" "--camel-case"))
 
-(use-package flyspell
-  :ghook ('prog-mode-hook #'flyspell-prog-mode)
-  :ghook ('text-mode-hook #'flyspell-mode))
+(use-package jinx-mode
+  :defer 1
+  :ghook ('(text-mode-hook
+            prog-mode-hook
+            conf-mode-hook))
+  :general ([remap ispell-word] #'jinx-correct-word
+            [remap evil-prev-flyspell-error] #'jinx-previous
+            [remap evil-next-flyspell-error] #'jinx-next))
 
 (use-package feature-mode
   :defer t
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 4b74f7ca..8ce0c7d6 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -123,6 +123,7 @@ in
         goto-chg
         helpful
         ibuffer-project
+        jinx
         just-mode
         justl
         json-mode