typos: Modify typos configuration and ignore typo check in doom init.el

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 0c9540a4a7
commit 2e4a532958
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 8 additions and 4 deletions

View file

@ -12,10 +12,10 @@ check-filename = true
check-file = true
unicode = true
extend-ignore-re = [
# Line ignore with trailling `(#|//) spellchecker: disable-line`
"(?Rm)^.*(#|//)\\s*spellchecker: disable-line$",
# Line block with `# spellchecker: <on|off>`
"(?s)(#|//)\\s*spellchecker: off.*?\\n\\s*(#|//)\\s*spellchecker: on",
# Line ignore with trailling `(#|//|;;) spellchecker: disable-line`
"(?Rm)^.*(#|//|;;)\\s*typochecker: disable-line$",
# Line block with `(#|;;|//) spellchecker: (on|off)`
"(?s)(#|//|;;)\\s*typochecker: off.*?\\n\\s*(#|//|;;)\\s*typochecker: on",
]
extend-ignore-identifiers-re = ["als", "Paket", "ConfiguratioN", "StructurE"]

View file

@ -14,6 +14,8 @@
;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
;; directory (for easy access to its source code).
;; typochecker: off
(doom! :input
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
;;chinese
@ -193,3 +195,5 @@
:config
;;literate
(default +bindings +smartparens))
;; typochecker: on