This commit is contained in:
Ivan Malison 2015-10-15 03:24:47 -07:00
parent 6e5d3988b6
commit ab40e9ee60

View File

@ -2138,9 +2138,11 @@ window is active in the perspective."
(progn
(use-package company-go)
(use-package go-projectile)
(use-package go-eldoc)
(defun imalison:go-mode-hook ()
(local-set-key (kbd "M-.") 'godef-jump)
(local-set-key (kbd "M-,") 'pop-tag-mark)
(go-eldoc-setup)
(set (make-local-variable 'company-backends) '(company-go)))
(add-hook 'go-mode-hook 'imalison:go-mode-hook)
(add-hook 'before-save-hook 'gofmt-before-save)))