about summary refs log tree commit diff
path: root/emacs-elisp/languages/rust.el
blob: 212a5755b3ce9b6d06994dcfb7cf2ad281b80c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
(use-package rust-mode)
(setq rust-mode-treesitter-derive t)

(setenv "PATH" (concat (concat
                        (concat (expand-file-name "~/.cargo/bin") ":")
                        (getenv "PATH"))))

(setq exec-path (append exec-path (list (expand-file-name "~/.cargo/bin"))))

(use-package flycheck-rust)
(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)