diff options
author | johannst <johannes.stoelp@gmail.com> | 2019-08-24 13:07:57 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2019-08-24 13:07:57 +0200 |
commit | 829ec85f59f45cfa35811bdfdfa03f5e0f1d59c2 (patch) | |
tree | 418841e38bd6a88933f136fd348916fa0f5213c8 | |
parent | fcc9eef7d3e2921daec0ef52a3c0ad1b77ee1a38 (diff) | |
download | dotfiles-829ec85f59f45cfa35811bdfdfa03f5e0f1d59c2.tar.gz dotfiles-829ec85f59f45cfa35811bdfdfa03f5e0f1d59c2.zip |
added racer + company to emacs config
-rw-r--r-- | emacs.el | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -69,6 +69,13 @@ :ensure t ) +;; company +(use-package company + :ensure t + :config + (setq company-tooltip-align-annotations t) + ) + ;; rust-mode (use-package rust-mode :ensure t @@ -78,7 +85,22 @@ ;; cargo (use-package cargo :ensure t - :hook (rust-mode . cargo-minor-mode) :after (rust-mode) + :hook (rust-mode . cargo-minor-mode) ) +;; racer +(use-package racer + :ensure t + :requires (company) + :after (rust-mode) + :hook ( + (rust-mode . racer-mode) + (racer-mode . company-mode) + (racer-mode . eldoc-mode) + ) + :bind + (:map rust-mode-map + ("TAB" . company-indent-or-complete-common) + ) + ) |