Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed Dec 16, 2024
1 parent 32c19e3 commit 4ff48ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions home-manager/programs/emacs/elisp/init.org
Original file line number Diff line number Diff line change
Expand Up @@ -1277,11 +1277,11 @@
#+end_src
*** flycheck-textlint
#+begin_src emacs-lisp :tangle yes
(with-eval-after-load 'flycheck
(defun my/flycheck-textlint-setup ()
(interactive)
(flycheck-define-checker textlint
"A linter for prose."
:command ("nix" "develop" "--command" "bash" "-c"
"textlint --format unix" source-inplace)
:command ("textlint" "--format" "unix" source-inplace)
:error-patterns
((warning line-start (file-name) ":" line ":" column ": "
(id (one-or-more (not (any " "))))
Expand All @@ -1290,6 +1290,8 @@
line-end))
:modes (org-mode))
(add-to-list 'flycheck-checkers 'textlint))

(add-hook 'emacs-startup-hook #'my/flycheck-textlint-setup)
#+end_src
*** flycheck-elsa
#+begin_src emacs-lisp :tangle yes
Expand Down

0 comments on commit 4ff48ac

Please sign in to comment.