summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2019-08-24 13:07:57 +0200
committerjohannst <johannes.stoelp@gmail.com>2019-08-24 13:07:57 +0200
commit829ec85f59f45cfa35811bdfdfa03f5e0f1d59c2 (patch)
tree418841e38bd6a88933f136fd348916fa0f5213c8
parentfcc9eef7d3e2921daec0ef52a3c0ad1b77ee1a38 (diff)
downloaddotfiles-829ec85f59f45cfa35811bdfdfa03f5e0f1d59c2.tar.gz
dotfiles-829ec85f59f45cfa35811bdfdfa03f5e0f1d59c2.zip
added racer + company to emacs config
-rw-r--r--emacs.el24
1 files changed, 23 insertions, 1 deletions
diff --git a/emacs.el b/emacs.el
index 626a12e..170e45e 100644
--- a/emacs.el
+++ b/emacs.el
@@ -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)
+ )
+ )