(require-package 'go-mode)
(require-package 'go-autocomplete)

; dafuq is up with autoloads?
(load "go-mode.el")

(require 'go-autocomplete)

; Installed by do-setup
(load-file "/Users/lstoll/gocode/src/code.google.com/p/go.tools/cmd/oracle/oracle.el")

(defun my-go-mode-hook ()
  ; Use goimports instead of go-fmt
  (setq gofmt-command "goimports")
  ; Call Gofmt before saving                                                    
  (add-hook 'before-save-hook 'gofmt-before-save)
  ; Customize compile command to run go build
  (if (not (string-match "go" compile-command))
      (set (make-local-variable 'compile-command)
           "go build -v && go test -v && go vet"))
  ; Godef jump key binding                                                      
  (local-set-key (kbd "M-.") 'godef-jump))
  ; Go Oracle
  (go-oracle-mode)
(add-hook 'go-mode-hook 'my-go-mode-hook)

(provide 'init-go)

(require-package 'go-mode)
(require-package 'go-autocomplete)

; dafuq is up with autoloads?
(load "go-mode.el")

(require 'go-autocomplete)

; Installed by do-setup
(load-file "/Users/lstoll/gocode/src/code.google.com/p/go.tools/cmd/oracle/oracle.el")

(defun my-go-mode-hook ()
  ; Use goimports instead of go-fmt
  (setq gofmt-command "goimports")
  ; Call Gofmt before saving
  (add-hook 'before-save-hook 'gofmt-before-save)
  ; Customize compile command to run go build
  (if (not (string-match "go" compile-command))
      (set (make-local-variable 'compile-command)
           "go build -v && go test -v && go vet"))
  ; Godef jump key binding
  (local-set-key (kbd "M-.") 'godef-jump))
  ; Go Oracle
  (go-oracle-mode)

  (setq tab-width 4)
(add-hook 'go-mode-hook 'my-go-mode-hook)

(provide 'init-go)

Set tab width to something less crazy
Set tab width to something less crazy
lstoll/repo,lstoll/repo,lstoll/repo,lstoll/dotfiles,lstoll/dotfiles,lstoll/dotfiles