From 798453ea55052c6af1752c1d6b1243e7c2591afd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 25 Apr 2024 17:21:20 +0200 Subject: emacs: replace flyspell with jinx (again :^) --- user/emacs/init.el | 11 ++++++++--- user/settings/emacs.nix | 1 + 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 -- cgit 1.4.1