summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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