 
 (use-package yasnippet
   ;; defer til the mode is called
-  :bind ("<C-S-tab>" . yas-minor-mode)
+  :bind ("<C-S-tab>" . yas-global-mode)
   :init (setq yas-snippet-dirs '(yas-installed-snippets-dir))
   :config (diminish 'yas-minor-mode " Y")
-  (add-hook 'yas-minor-mode-hook 'yas-reload-all)
   (bind-key "<S-tab>" 'yas-expand yas-minor-mode-map)
   (unbind-key "<tab>" yas-minor-mode-map)
   (unbind-key "TAB" yas-minor-mode-map))
 
 (use-package company
   ;; defer til the mode is called
-  :bind ("<C-tab>" . company-mode)
+  :bind ("<C-tab>" . global-company-mode)
   :diminish " K"
   :config
   (unbind-key "<tab>" company-active-map)


(use-package projectile
  ;; defer til the mode is called
  :bind ("C-c C-p" . projectile-mode) ("C-x p" . projectile-global-mode))

;;;;;;;;;;;;;
;; editing ;;


(use-package flycheck
  ;; defer til the mode is called
  :bind ("<C-M-S-tab>" . global-flycheck-mode)
  :config (use-package flycheck-pos-tip
            :config (setq flycheck-display-errors-function
                          #'flycheck-pos-tip-error-messages)))
