Explicitly add flycheck to the go layer

This commit is contained in:
syl20bnr 2015-01-09 23:09:16 -05:00
parent 1344180b45
commit 4cc9bc4a3c

View file

@ -1,10 +1,14 @@
(defvar go-packages
'(
flycheck
go-mode
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
(defun go/init-flycheck ()
(add-hook 'go-mode-hook 'flycheck-mode))
(defun go/init-go-mode()
(use-package go-mode
:defer t
@ -18,11 +22,7 @@ which require an initialization must be listed explicitly in the list.")
"mpb" 'go-play-buffer
"mpr" 'go-play-region
"mpd" 'go-download-play
)
)
))
:config
(add-hook 'before-save-hook 'gofmt-before-save)
(add-hook 'go-mode-hook 'flycheck-mode)
)
)
))