summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2017-01-27 14:56:00 -0800
committerFranck Cuny <franck.cuny@gmail.com>2017-01-27 14:56:00 -0800
commit8d895d494ad7337c34cb17a16102837ddde129bb (patch)
treefdf30c6f20d812585ef115614a5eb7f31c6d5e09
parent[Doc] Update. (diff)
downloademacs.d-8d895d494ad7337c34cb17a16102837ddde129bb.tar.gz
[Emacs] Install company (and support for go).
-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