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

Create plugin for emacs #37

Closed
suchow opened this issue Jan 29, 2015 · 2 comments
Closed

Create plugin for emacs #37

suchow opened this issue Jan 29, 2015 · 2 comments
Milestone

Comments

@suchow
Copy link
Member

suchow commented Jan 29, 2015

No description provided.

@suchow suchow added this to the eventually milestone Jan 29, 2015
@suchow suchow added the plugin label Jan 29, 2015
@unhammer
Copy link

http://unconj.ca/blog/linting-prose-in-emacs.html defines one; I modified the regex a bit since errors can have newlines in them:

  (flycheck-define-checker proselint
    "A linter for prose."
    :command ("proselint" source-inplace)
    :error-patterns
    ((warning line-start (file-name) ":" line ":" column ": "
              (id (one-or-more (not (any " "))))
              (message (one-or-more not-newline)
                       (zero-or-more "\n" (any " ") (one-or-more not-newline)))
              line-end))
    :modes (text-mode markdown-mode gfm-mode))
  (add-to-list 'flycheck-checkers 'proselint)

If you install flycheck from MELPA, all you need then is e.g.

    (add-hook 'markdown-mode-hook #'flycheck-mode)
    (add-hook 'text-mode-hook #'flycheck-mode)

suchow added a commit that referenced this issue Feb 19, 2016
@suchow
Copy link
Member Author

suchow commented Mar 9, 2016

Closed by #287.

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