comparison .elisp/settings/99.rust.el @ 397:98484e1f564f

rust: lots of new configs to make working with rust code easy
author Augie Fackler <raf@durin42.com>
date Mon, 27 Jun 2016 16:27:46 -0400
parents
children f08193904d93
comparison
equal deleted inserted replaced
396:980b3df541cd 397:98484e1f564f
1 (use-package rust-mode
2 :config (add-hook 'rust-mode-hook
3 (lambda ()
4 (local-set-key (kbd "C-c <tab>") #'rust-format-buffer))))
5
6 (use-package cargo
7 :config (add-hook 'rust-mode-hook 'cargo-minor-mode))
8
9 (use-package company
10 :init
11 (use-package racer
12 :init
13 (add-hook 'rust-mode-hook #'racer-mode)
14 (add-hook 'racer-mode-hook #'eldoc-mode)
15 (add-hook 'racer-mode-hook #'company-mode)
16 (setq company-tooltip-align-annotations t)
17 ))
18
19 (use-package flycheck-rust
20 :init
21 (add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
22 (add-hook 'rust-mode-hook 'flycheck-mode)
23 )