diff --git a/emacs/.config/doom/config.org b/emacs/.config/doom/config.org index b3b92fe..8b309b5 100644 --- a/emacs/.config/doom/config.org +++ b/emacs/.config/doom/config.org @@ -158,19 +158,20 @@ Handy clock to look up what timezone my co-workers are in! ("Europe/Kiev" "Lviv"))) #+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 -(flycheck-define-checker proselint - "A linter for prose." - :command ("proselint" source-inplace) +(flycheck-define-checker vale + "A checker for prose" + :command ("vale" "--output" "line" + source) + :standard-input nil :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) - + ((error line-start (file-name) ":" line ":" column ":" (id (one-or-more (not (any ":")))) ":" (message) line-end)) + :modes (markdown-mode org-mode text-mode) + ) +(add-to-list 'flycheck-checkers 'vale 'append) #+END_SRC * Org-mode ** Basic configuration @@ -189,6 +190,7 @@ A handful of mods here clean up org mode. Line numbers don’t mean much when yo org-fontify-done-headline t org-fontify-quote-and-verse-blocks t org-ellipsis "…" + org-image-actual-width '(600) org-capture-templates '(("i" "Send to inbox" entry (file "~/var/org/inbox.org") "* TODO %?\n"))