 (require-package 'go-mode)
 (require-package 'go-autocomplete)
 (require-package 'flycheck-gometalinter)
+(require-package 'go-eldoc)
 
 ; dafuq is up with autoloads?
-;(load "go-mode.el")
+(load "go-mode.el")
 
 (require 'go-autocomplete)
 (setq-default ac-go-expand-arguments-into-snippets t)
 
-; Installed by thesetup
-(load-file (concat "/Users/" (getenv "USER") "/src/golang.org/x/tools/cmd/guru/go-guru.el"))
-(load-file (concat "/Users/" (getenv "USER") "/src/golang.org/x/tools/refactor/rename/go-rename.el"))
+; Needs to be installed
+(load-file (concat (getenv "HOME") "/src/golang.org/x/tools/refactor/rename/go-rename.el"))
 
 (eval-after-load 'flycheck
   '(add-hook 'flycheck-mode-hook #'flycheck-gometalinter-setup))


  (setq ac-sources '(ac-source-go ac-source-yasnippet))

  ;(setq flycheck-checkers '(go-build gometalinter))
  )
(add-hook 'go-mode-hook 'my-go-mode-hook)

(provide 'init-go)

;; Only run the 'fast' linters
(setq flycheck-gometalinter-fast t)

(defun go-mode-setup ()
  (go-eldoc-setup)
  ;; Use goimports instead of go-fmt
  (setq gofmt-command "goreturns")
  ;; Call Gofmt before saving
  (add-hook 'before-save-hook 'gofmt-before-save)

