emacs: only load jinx in text-mode buffers
Alan Pearce alan@alanpearce.eu
Sun, 09 Feb 2025 19:23:16 +0100
1 files changed, 2 insertions(+), 4 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -1153,10 +1153,8 @@ (setq-default ispell-dictionary "en_GB-ise-w_accents") (setq ispell-extra-args '("--sug-mode=ultra" "--camel-case")) (use-package jinx-mode - :defer 1 - :ghook ('(text-mode-hook - prog-mode-hook - conf-mode-hook)) + :defer 10 + :ghook 'text-mode-hook :general ([remap ispell-word] #'jinx-correct-word [remap evil-prev-flyspell-error] #'jinx-previous [remap evil-next-flyspell-error] #'jinx-next)