 (use-package go-mode
   :defer t
   :ensure t
-  :init
-  (progn
-    (use-package company-go
-      :hook go-mode
-      :ensure t))
   :config
   (add-hook 'go-mode-hook
             (lambda ()
               (setq tab-width 4)
-              (set (make-local-variable 'company-backends) '(company-go))
               (company-mode))))
 
 (defun my-c-mode-hook ()

  :ensure t
  :config (add-hook 'prog-mode-hook 'company-mode))

(use-package magit
  :defer t
  :ensure t)

(use-package flycheck
  :ensure t
  :defer t
  ;:init
  ;(progn
  ;  (setq flycheck-command-wrapper-function
  ;        (lambda (command)
  ;          (append '("bundle" "exec") command))))
  :config
  (global-flycheck-mode))

