From 8d895d494ad7337c34cb17a16102837ddde129bb Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 27 Jan 2017 14:56:00 -0800 Subject: [Emacs] Install company (and support for go). --- emacs.d/init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'emacs.d') 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 -- cgit 1.4.1