Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
philc opened this issue Nov 13, 2020 · 1 comment

Comments

@philc
Copy link

philc commented Nov 13, 2020

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.

@tlikonen
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants