Mercurial > dotfiles
annotate .elisp/settings/99.rust.el @ 498:ab38b9bf226d
bootstrap: always install exec-path-from-shell-initialize
Required fixing the melpa URL, which has been broken ~forever.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 03 Oct 2020 11:14:06 -0400 |
parents | f08193904d93 |
children | 514374a2a5bc |
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)))) |
475
f08193904d93
emacs: enable rustfmt on save
Augie Fackler <raf@durin42.com>
parents:
397
diff
changeset
|
5 (setq rust-format-on-save t) |
397
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
6 |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
7 (use-package cargo |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
8 :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
|
9 |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
10 (use-package company |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
11 :init |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
12 (use-package racer |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
13 :init |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
14 (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
|
15 (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
|
16 (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
|
17 (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
|
18 )) |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
19 |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
20 (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
|
21 :init |
98484e1f564f
rust: lots of new configs to make working with rust code easy
Augie Fackler <raf@durin42.com>
parents:
diff
changeset
|
22 (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
|
23 (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
|
24 ) |