summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el11
1 files changed, 8 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