blob: 23a06da1dd7baee0aeedc3f36feffe862ef6e665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
((rust-mode . ((fmt-executable . "rustfmt")
(fmt-args . ("--edition=2024"))
(rust-cargo-default-arguments . "-r")
(eglot-workspace-configuration . (:rust-analyzer
(:check
(:command "clippy"))))
(eval . (eglot-ensure))
(eval . (company-mode 1))
(eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t))
(eval . (add-hook 'eglot-managed-mode-hook (lambda ()
(eglot-inlay-hints-mode -1))
nil t))))
(meson-mode . ((fmt-executable . "meson")
(fmt-args . ("format" "-"))
(eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t))))
(python-ts-mode . ((eval . (flycheck-mode 1))
(eval . (flycheck-select-checker 'python-mypy))
(eval . (flycheck-add-next-checker 'python-mypy (cons t 'python-flake8)))
(eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t))
(eval . (setq-local fmt-executable "black"
fmt-args '("-"))))))
|