 ;; PYTHON
 (add-hook 'python-mode-hook 'anaconda-mode)
 
+;; GO
+(defun go-mode-setup ()
+  (setq compile-command "go build -v && go test -v && go vet && golint")
+  (define-key (current-local-map) "\C-c\C-c" 'compile)
+  (go-eldoc-setup)
+  (setq gofmt-command "goimports")
+  (add-hook 'before-save-hook 'gofmt-before-save)
+  (local-set-key (kbd "M-.") 'godef-jump))
+  (add-hook 'go-mode-hook 'go-mode-setup)
+;;Configure golint
+(add-to-list 'load-path (concat (getenv "GOPATH")  "/src/github.com/golang/lint/misc/emacs"))
+(require 'golint)
+
 
 ;; Markdown mode
 (custom-set-variables
- '(markdown-command "/usr/bin/pandoc"))
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(git-gutter:update-interval 2)
+ '(markdown-command "/usr/bin/pandoc")
+ '(package-selected-packages
+   (quote
+    (go-eldoc company-go go-mode ace-jump-mode zenburn-theme company-anaconda company neotree smex))))
 
 
 ;; GIT GUTTER

    neotree
    ace-jump-mode
    company
    company-anaconda
    anaconda-mode
    company-quickhelp
    git-gutter
    markdown-mode
    evil
    yasnippet
    ;;zenburn-theme

(define-key global-map (kbd "C-x SPC") 'ace-jump-mode-pop-mark)



(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
