diff options
author | Alan Pearce | 2024-04-25 17:21:20 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-25 17:21:20 +0200 |
commit | 798453ea55052c6af1752c1d6b1243e7c2591afd (patch) | |
tree | 11bd68165d8b61df809587b68a1180ca3fa8c5e8 /user/emacs | |
parent | c244201a379ecc5353a1b0cc6882ea321fd1233d (diff) | |
download | nixfiles-798453ea55052c6af1752c1d6b1243e7c2591afd.tar.lz nixfiles-798453ea55052c6af1752c1d6b1243e7c2591afd.tar.zst nixfiles-798453ea55052c6af1752c1d6b1243e7c2591afd.zip |
emacs: replace flyspell with jinx (again :^)
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 11 |
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 |