 ;; turn off annoying tooltips
 (use-package company
   :config (setq company-frontends nil)
-  :hook (after-init . global-company-mode)
+  ;;:hook (after-init . global-company-mode)
   :config
   :ensure company
   :config

  :config
  (progn
    (setq gofmt-command "goimports")
    (add-hook 'before-save-hook 'gofmt-before-save)
    ;; By default company-mode loads every backend it has. If you want
    ;; to only have company-mode enabled in go-mode add the following
    ;; to your emacs-config:
    (add-hook 'go-mode-hook
	  (lambda ()
            (set (make-local-variable 'company-backends) '(company-go))
            (company-mode))))
  :config
  (progn
    (bind-key "C-M-x" 'aim/run-go-buffer go-mode-map)
    (bind-key "C-M-i" 'helm-company go-mode-map)
    (bind-key "M-." 'godef-jump go-mode-map)))
    
(use-package apropospriate-theme
  :ensure t
  :config
  (load-theme 'apropospriate-dark t)
  ;; or
  ;;(load-theme 'apropospriate-light t)
  )


(setq company-frontends
      '(company-pseudo-tooltip-unless-just-one-frontend
	company-preview-frontend
	company-echo-metadata-frontend))

(setq company-auto-complete 'never)
;;(company-tng-configure-default)
