wcheck-mode icon indicating copy to clipboard operation
wcheck-mode copied to clipboard

Allow/document the ability to exclude URLs and other word patterns from spell-checking

Open philc opened this issue 4 years ago • 1 comments

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.

philc avatar Nov 13 '20 23:11 philc

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.

tlikonen avatar Dec 26 '20 11:12 tlikonen