From 829ec85f59f45cfa35811bdfdfa03f5e0f1d59c2 Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 24 Aug 2019 13:07:57 +0200 Subject: added racer + company to emacs config --- emacs.el | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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) + ) + ) -- cgit v1.2.3