commit 91cf80fce7c17fbe13643bcebde5216a8aa54c1f
parent 67fc282afecf9326047e44e69424bb840f9e889d
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Thu, 21 Mar 2019 15:51:31 -0400
Move company-go to company backend section.
Diffstat:
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/README.org b/README.org
@@ -572,6 +572,16 @@ Install =company-anaconda= and add it to =company-backends=.
'company-anaconda))
#+END_SRC
+**** =company-go=
+Auto complete for =go=. This relies on =gocode= to be installed using =go get=. Either install from [[https://github.com/mdempsky/gocode][github.com/mdempsky/gocode]] or [[https://github.com/stamblerre/gocode][github.com/stamblerre/gocode]] (supports go-modules).
+
+#+BEGIN_SRC emacs-lisp
+ (use-package company-go
+ :ensure t
+ :init (add-to-list 'company-backends
+ 'company-go))
+#+END_SRC
+
**** =company-yasnippet=
Add =company-yasnippet= backend for =yasnippet= key completion. Run this last to ensure coverage.
#+BEGIN_SRC emacs-lisp
@@ -1201,16 +1211,6 @@ Remember to set =$GOPATH= environment variable and add =$GOPATH/bin= to =$PATH=.
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode)))
#+END_SRC
-*** company-go
-Auto complete for =go=. This relies on =gocode= to be installed using =go get=. Either install from [[https://github.com/mdempsky/gocode][github.com/mdempsky/gocode]] or [[https://github.com/stamblerre/gocode][github.com/stamblerre/gocode]] (supports go-modules).
-
-#+BEGIN_SRC emacs-lisp
- (use-package company-go
- :ensure t
- :init (add-to-list 'company-backends
- 'company-go))
-#+END_SRC
-
*** go-guru
Helpful code analysis tool, requires [[https://godoc.org/golang.org/x/tools/cmd/guru][golang.org/x/tools/cmd/guru]].