all repos — nixfiles @ 0d60b154cc82b17fb9d3a888db3a76b913134b70

System and user configuration, managed by nix and home-manager

Emacs: fix flycheck config in rustic-mode
Alan Pearce alan@alanpearce.eu
Mon, 17 May 2021 13:41:10 +0200
commit

0d60b154cc82b17fb9d3a888db3a76b913134b70

parent

40b8dcfb3e88c766ff3d4346f1c1fef03bc0305f

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -726,7 +726,8 @@ :config (progn             (setq rustic-format-on-save t
                   lsp-rust-analyzer-display-inlay-hints t
                   lsp-rust-analyzer-cargo-watch-command "clippy")
-            (add-to-list 'flycheck-checkers 'rustic-clippy)))
+            (with-eval-after-load 'flycheck
+              (add-to-list 'flycheck-checkers 'rustic-clippy))))
 
 ;;;; js
 (setq js-indent-level 2