all repos — nixfiles @ dfcf5e43d5f82946d7e5cf084aa58ed54a9cec86

System and user configuration, managed by nix and home-manager

emacs: only load jinx in text-mode buffers
Alan Pearce alan@alanpearce.eu
Sun, 09 Feb 2025 19:23:16 +0100
commit

dfcf5e43d5f82946d7e5cf084aa58ed54a9cec86

parent

d34c594f7eee3bfb85c859c3d80dd2254f7d7f87

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M user/emacs/init.eluser/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)