Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed Nov 6, 2024
1 parent 426e190 commit 6b19fbb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
35 changes: 18 additions & 17 deletions home-manager/programs/emacs/elisp/init.org
Original file line number Diff line number Diff line change
Expand Up @@ -1260,23 +1260,24 @@
#+begin_src emacs-lisp :tangle yes
(autoload-if-found '(flycheck-mode flycheck-define-checker) "flycheck" nil t)
#+end_src
*** TODO flycheck-textlint
#+begin_src emacs-lisp :tangle yes
;; (add-hook 'emacs-startup-hook
;; #'(lambda ()
;; (flycheck-define-checker textlint
;; "A linter for prose."
;; :command ("npx" "textlint" "--format" "unix" source-inplace)
;; :error-patterns
;; ((warning line-start (file-name) ":" line ":" column ": "
;; (id (one-or-more (not (any " "))))
;; (message (one-or-more not-newline)
;; (zero-or-more "\n" (any " ") (one-or-more not-newline)))
;; line-end))
;; :modes (org-mode))

;; (with-eval-after-load 'flycheck
;; (add-to-list 'flycheck-checkers 'textlint))))
*** flycheck-textlint
#+begin_src emacs-lisp :tangle yes
(defun my/setup-flycheck-textlint ()
(interactive)
(flycheck-define-checker textlint
"A linter for prose."
:command ("npx" "textlint" "--format" "unix" source-inplace)
:error-patterns
((warning line-start (file-name) ":" line ":" column ": "
(id (one-or-more (not (any " "))))
(message (one-or-more not-newline)
(zero-or-more "\n" (any " ") (one-or-more not-newline)))
line-end))
:modes (org-mode))
(add-to-list 'flycheck-checkers 'textlint))

(with-eval-after-load 'org
(add-hook 'org-mode-hook #'my/setup-flycheck-textlint))
#+end_src
*** flycheck-elsa
#+begin_src emacs-lisp :tangle yes
Expand Down
1 change: 0 additions & 1 deletion nix-darwin/config/homebrew.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
];
masApps = {
LINE = 539883307;
# Xcode = 497799835;
};
};
}

0 comments on commit 6b19fbb

Please sign in to comment.