summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2021-05-17 13:41:10 +0200
committerAlan Pearce2021-05-17 13:41:10 +0200
commit0d60b154cc82b17fb9d3a888db3a76b913134b70 (patch)
treeb46476bbb91617b90b4222a0847a2edb307329e4
parent40b8dcfb3e88c766ff3d4346f1c1fef03bc0305f (diff)
downloadnixfiles-0d60b154cc82b17fb9d3a888db3a76b913134b70.tar.lz
nixfiles-0d60b154cc82b17fb9d3a888db3a76b913134b70.tar.zst
nixfiles-0d60b154cc82b17fb9d3a888db3a76b913134b70.zip
Emacs: fix flycheck config in rustic-mode
-rw-r--r--user/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index dbf12186..8440b9c7 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -726,7 +726,8 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             (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