[emacs] Add configuration for Proselint

This commit is contained in:
2020-07-30 23:11:39 -04:00
parent 80ea1bff35
commit 95610c87bc

View File

@ -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 dont mean much when youre folding and unfolding all the time. I also really enjoy the typography of a serif font when Im writing a lot of words.