 
 (use-package gotest :ensure t)
 
+;; go get -u golang.org/x/tools/cmd/gorename
 (use-package go-rename :ensure t)
 
-(use-package go-snippets :ensure t)
+(use-package go-snippets :ensure t
+  :config
+  (go-snippets-initialize))
 
 (use-package godoctor :ensure t)
 
 (use-package go-mode :ensure t)
 ;; Requires gocode daemon. Install with:
+;; go get -u golang.org/x/tools/cmd/...
 ;; go get -u github.com/nsf/gocode
 ;; go get -u github.com/rogpeppe/godef
-;; go get -u code.google.com/p/go.tools/cmd/goimports
+;; go get -u golang.org/x/tools/cmd/goimports
 ;; Useful info at:
 ;; From http://tleyden.github.io/blog/2014/05/22/configure-emacs-as-a-go-editor-from-scratch
 ;; From http://tleyden.github.io/blog/2014/05/27/configure-emacs-as-a-go-editor-from-scratch-part-2


;; Highlights current line.
;; Disabling while I try beacon-mode instead.
;;(use-package hl-line :ensure t)

;; Momentarily highlights cursor on scrolling events.
(use-package beacon :ensure t

(defun ar/go-mode-hook-function ()
  "Called when entering `go-mode'."
  (helm-dash-activate-docset "Go")
  (setq gofmt-command "goimports")
  (setq-local company-backends '(company-go))
  (company-mode)
  (go-eldoc-setup)
