Browse Source

[emacs] Add configuration for Proselint

Colin Powell 5 years ago
parent
commit
95610c87bc
1 changed files with 15 additions and 0 deletions
  1. 15 0
      emacs/.config/doom/config.org

+ 15 - 0
emacs/.config/doom/config.org

@@ -159,6 +159,21 @@ Handy clock to look up what timezone my co-workers are in!
                                 ("Europe/Warsaw" "Warsaw")
                                 ("Europe/Kiev" "Lviv")))
 #+END_SRC
+
+Proselint! Let's try to write better :)
+#+BEGIN_SRC emacs-lisp
+(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) line-end))
+  :modes (text-mode markdown-mode org-mode))
+
+(add-to-list 'flycheck-checkers 'proselint)
+
+#+END_SRC
 * Org-mode
 ** Basic configuration
 A handful of mods here clean up org mode. Line numbers don’t mean much when you’re folding and unfolding all the time. I also really enjoy the typography of a serif font when I’m writing a lot of words.