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

Implement langtool-check for development language comments #42

Open
rememberYou opened this issue Mar 2, 2019 · 2 comments
Open

Implement langtool-check for development language comments #42

rememberYou opened this issue Mar 2, 2019 · 2 comments

Comments

@rememberYou
Copy link
Contributor

Recently, I've been using your package and one of the things that caught my attention. Currently this package is great if you want to check the grammar of a text. However, it can also be useful to check the grammar of any comment in any development language.

I was surprised to see that there is not yet a function that would allow langtool-check to run only in code comments. In fact, such a function would avoid adding various rules in langtool-disabled-rules in order to avoid errors related to the syntax of the programming language. In addition, these disabled rules are a disadvantage because you would like to activate them in most cases.

My idea is this: what do you think about implementing a function like flyspell-prog-mode that would enable langtool only in comments when langtool-check runs in a mode other than markdown-mode, org-mode, text-mode?

Thank you for your work.

@redguardtoo
Copy link

Check my pull request at #43

It supports any major mode (e.g., org-mode, prog-mode).

@rememberYou
Copy link
Contributor Author

Thank you for your pull request, this going to make my life easier ☺️

I hope that the merge won't take too much time to do.

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