summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs.d/init.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index e66d8e3..d44a982 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -55,6 +55,18 @@
;; automatically revert the buffer if the content changed on disk
:diminish auto-revert-mode)
+(use-package company
+ ;; provide completion
+ :ensure t
+ :config
+ (global-company-mode))
+
+(use-package company-go
+ :ensure t
+ ;; completion for golang
+ :init (with-eval-after-load 'company
+ (add-to-list 'company-backends 'company-go)))
+
(use-package counsel
;; completion functions for ivy
:ensure t