summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa2024-10-24 15:12:15 +0800
committernoa2024-10-24 15:12:15 +0800
commit15f98041ccd137caaa27d7c82c539e0cf1d73fde (patch)
tree36157166e2ae2f2e8b918daf3f1eff5d3fec4d9f
parent5e6e52c099ce4e89e52bb1b6b0d4a78e609a6f12 (diff)
Don't let jinx report chinese as spelling errors
-rw-r--r--emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index c2b13ac..36f2d58 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -195,10 +195,11 @@
   :ensure t
   :hook (text-mode . jinx-mode)
   :bind
-  ("M-$" . jinx-correct) ;; replaces ispell-word
+  ([remap ispell-word] . jinx-correct) ;; replaces ispell-word
   ("C-M-$" . jinx-languages)
   :config
   (put 'jinx-overlay 'mouse-face '(jinx-misspelled highlight)) ;; Use standard mouse face for jinx overlays
+  (add-to-list 'jinx-exclude-regexps '(t "\\cc")) ;; Don't check chinese characters
   )
 
 ;; Automatically creates an abbrev for words i correct, so i don't make the same mistake twice