[emacs] Switch to vale instead of proselint

This commit is contained in:
2020-09-16 23:33:19 -04:00
parent 3a78790348
commit ebc0ccc083

View File

@ -158,19 +158,20 @@ Handy clock to look up what timezone my co-workers are in!
("Europe/Kiev" "Lviv"))) ("Europe/Kiev" "Lviv")))
#+END_SRC #+END_SRC
Proselint! Let's try to write better :) Vale linter, a more up to date proselint!
How I went about [[file:/usr/home/powellc/var/org/20200916134500-vale_prose_linter.org::*Installing Vale][installing Vale]]
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(flycheck-define-checker proselint (flycheck-define-checker vale
"A linter for prose." "A checker for prose"
:command ("proselint" source-inplace) :command ("vale" "--output" "line"
source)
:standard-input nil
:error-patterns :error-patterns
((warning line-start (file-name) ":" line ":" column ": " ((error line-start (file-name) ":" line ":" column ":" (id (one-or-more (not (any ":")))) ":" (message) line-end))
(id (one-or-more (not (any " ")))) :modes (markdown-mode org-mode text-mode)
(message) line-end)) )
:modes (text-mode markdown-mode org-mode)) (add-to-list 'flycheck-checkers 'vale 'append)
(add-to-list 'flycheck-checkers 'proselint)
#+END_SRC #+END_SRC
* Org-mode * Org-mode
** Basic configuration ** Basic configuration
@ -189,6 +190,7 @@ A handful of mods here clean up org mode. Line numbers dont mean much when yo
org-fontify-done-headline t org-fontify-done-headline t
org-fontify-quote-and-verse-blocks t org-fontify-quote-and-verse-blocks t
org-ellipsis "" org-ellipsis ""
org-image-actual-width '(600)
org-capture-templates org-capture-templates
'(("i" "Send to inbox" entry (file "~/var/org/inbox.org") '(("i" "Send to inbox" entry (file "~/var/org/inbox.org")
"* TODO %?\n")) "* TODO %?\n"))