Define the flycheck checker after flycheck is available
This commit is contained in:
parent
8d9371de43
commit
1a5e20a359
2 changed files with 13 additions and 10 deletions
|
@ -18,7 +18,7 @@ This creates [[file:~/.emacs.d/init.el][~/.emacs.d/init.el]] that starts the pro
|
|||
- [[file:ha-config.org][config]] :: contains /most/ of my configuration, setting up my sequence key menus, evil, etc.
|
||||
- [[file:ha-display.org][display]] :: sets up the visual aspects of an Emacs GUI, including themes, fonts and the dashboard.
|
||||
- [[file:ha-org.org][org]] :: configures the basics for org-mode formatted files. Specific features, however, come from their own files, however.
|
||||
- [[file:ha-org-word-processor.org][org-word-processor]] :: attempts to make Org files /visually/ look like what one might see in a word processor, including turning off the colors for headers, and instead increasing their size.
|
||||
- [[file:ha-org-word-processor.org][org-word-processor]] :: attempts to make Org files /visually/ look like a word processor, including turning off the colors for headers, and instead increasing their size.
|
||||
- [[file:ha-org-clipboard.org][org-clipboard]] :: automatically converting HTML from a clipboard into Org-formatted content.
|
||||
- [[file:ha-org-journaling.org][org-journaling]] :: for writing journal entries and tasks.
|
||||
- [[file:ha-org-publishing.org][org-publishing]] :: code for publishing my website, [[http://howardism.org][www.howardism.org]].
|
||||
|
@ -33,6 +33,7 @@ This creates [[file:~/.emacs.d/init.el][~/.emacs.d/init.el]] that starts the pro
|
|||
- [[file:ha-passwords.org][passwords]] :: code for generating passwords.
|
||||
- [[file:ha-programming.org][programming]] :: configuration for /all/ programming languages, or at least, the simple ones.
|
||||
- [[file:ha-programming-python.org][programming-python]] :: configuration for working with Python and LSP.
|
||||
- [[file:ha-programming-scheme.org][programming-scheme]] :: configuration for Racket.
|
||||
- [[file:ha-aux-apps.org][aux-apps]] :: additional application configuration.
|
||||
|
||||
*Note:* Other functions and files come from essays written on [[http://www.howardism.org][my blog]]. To help with this, see [[file:support/final-initialize.el][support/final-initialize.el]] file.
|
||||
|
|
20
ha-org.org
20
ha-org.org
|
@ -566,21 +566,23 @@ We install the =write-good= NPM:
|
|||
#+END_SRC
|
||||
|
||||
And check that the following works:
|
||||
#+BEGIN_SRC sh
|
||||
#+BEGIN_SRC sh :results output
|
||||
write-good --text="So it is what it is."
|
||||
#+END_SRC
|
||||
|
||||
Now, let’s connect it to flycheck:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(flycheck-define-checker write-good
|
||||
"A checker for prose"
|
||||
:command ("write-good" "--parse" source-inplace)
|
||||
:standard-input nil
|
||||
:error-patterns
|
||||
((warning line-start (file-name) ":" line ":" column ":" (message) line-end))
|
||||
:modes (markdown-mode org-mode text-mode))
|
||||
(use-package flycheck
|
||||
:config
|
||||
(flycheck-define-checker write-good
|
||||
"A checker for prose"
|
||||
:command ("write-good" "--parse" source-inplace)
|
||||
:standard-input nil
|
||||
:error-patterns
|
||||
((warning line-start (file-name) ":" line ":" column ":" (message) line-end))
|
||||
:modes (markdown-mode org-mode text-mode))
|
||||
|
||||
(add-to-list 'flycheck-checkers 'vale 'append)
|
||||
(add-to-list 'flycheck-checkers 'vale 'append))
|
||||
#+END_SRC
|
||||
*** Proselint
|
||||
With overlapping goals to =write-good=, the [[https://github.com/amperser/proselint/][proselint]] project, once installed, can check for some English phrasings. I like =write-good= better, but I want this available for its level of /pedantic-ness/.
|
||||
|
|
Loading…
Reference in a new issue