From 1a5e20a35903989e788729de75a5f04a4b2ba85b Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 15 Mar 2022 09:54:30 -0700 Subject: [PATCH] Define the flycheck checker after flycheck is available --- README.org | 3 ++- ha-org.org | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index 28088bd..6068a9c 100644 --- a/README.org +++ b/README.org @@ -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. diff --git a/ha-org.org b/ha-org.org index 737cfbb..e3dfb48 100644 --- a/ha-org.org +++ b/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/.