wcheck-mode
wcheck-mode copied to clipboard
Allow/document the ability to exclude URLs and other word patterns from spell-checking
wcheck marks all URLs in my text documents as mispellings. I would like to exclude URLs from being spell-checked.
Flyspell has flyspell-mode-predicate
which directly serves this purpose.
I looked through the source and maybe regexp-start
, regexp-body
, regexp-end
can serve this purpose, but it's not obvious how. If that's the mechanism you want to to use to support this use case, then documenting how to modify those variables to exclude URLs would be super helpful.
Wcheck does not have good way to ignore complex structures like URLs. It can ignore (or read) by Emacs face properties. If some major or minor mode marks URLs with a specific face then it should be simple to make Wcheck only read some other faces or ignore URL faces.