annotate .elisp/settings/99.rust.el @ 409:b5178986dcbb

af{copy,paste}: scripts so I can copy/paste with pipes across platforms
author Augie Fackler <raf@durin42.com>
date Thu, 04 Aug 2016 10:10:09 -0400
parents 98484e1f564f
children f08193904d93
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 )