annotate .elisp/settings/99.rust.el @ 482:0731ceeb27dd

emacs: run hg tests under python3 by default now
author Augie Fackler <raf@durin42.com>
date Tue, 07 Jan 2020 16:49:47 -0500
parents f08193904d93
children 514374a2a5bc
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))))
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 )