summaryrefslogtreecommitdiffstats
path: root/lisp/init-rust.el
blob: 10b4abd79e780d524b45801e20493406c523c967 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
(use-package rust-mode
  :ensure t
  :init
  (when (executable-find "rustfmt")
    (setq rust-format-on-save t))

  :bind (:map rust-mode-map
              ;; C-c f runs rustfmt on the buffer
              ("C-c f" . rust-format-buffer)))

(provide 'init-rust)