diff --git a/dotfiles/doom/config.org b/dotfiles/doom/config.org index 1665167..4d5d1a5 100755 --- a/dotfiles/doom/config.org +++ b/dotfiles/doom/config.org @@ -451,17 +451,17 @@ later. Configurations to add linting support to specific languages by integrating linters with flycheck. #+begin_src emacs-lisp :tangle ./config.el -;; (use-package! flycheck -;; :config -;; (flycheck-define-checker deadnix -;; "A syntax checker for Nix using deadnix." -;; :command ("deadnix" "--fail" source) -;; :error-patterns -;; ((warning line-start (file-name) ":" line ":" column -;; ": " (message) line-end)) -;; :modes (nix-mode)) +(use-package! flycheck + :config + (flycheck-define-checker nix-statix + "A syntax checker for Nix using Statix." + :command ("statix" "check" source) + :error-patterns + ((warning line-start (file-name) ":" line ":" column + ": " (message) line-end)) + :modes (nix-mode)) -;; (add-to-list 'flycheck-checkers 'deadnix)) + (add-to-list 'flycheck-checkers 'nix-statix)) #+end_src * GPT Integrate most AI agents with emacs on a way that through api keys it can do