Mercurial > dotfiles
annotate .elisp/settings/99.rust.el @ 440:d706030e7c90
customze: include toml-mode
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 15 Jul 2017 12:59:08 -0400 |
parents | 98484e1f564f |
children | f08193904d93 |
rev | line source |
---|---|
397
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
1 (use-package rust-mode |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
2 :config (add-hook 'rust-mode-hook |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
3 (lambda () |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
4 (local-set-key (kbd "C-c <tab>") #'rust-format-buffer)))) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
5 |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
6 (use-package cargo |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
7 :config (add-hook 'rust-mode-hook 'cargo-minor-mode)) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
8 |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
9 (use-package company |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
10 :init |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
11 (use-package racer |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
12 :init |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
13 (add-hook 'rust-mode-hook #'racer-mode) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
14 (add-hook 'racer-mode-hook #'eldoc-mode) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
15 (add-hook 'racer-mode-hook #'company-mode) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
16 (setq company-tooltip-align-annotations t) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
17 )) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
18 |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
19 (use-package flycheck-rust |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
20 :init |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
21 (add-hook 'flycheck-mode-hook #'flycheck-rust-setup) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
22 (add-hook 'rust-mode-hook 'flycheck-mode) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
23 ) |