 
 (use-package flycheck
   :ensure
-  :init (global-flycheck-mode))
-
-(use-package flycheck-pos-tip
-  :ensure)
+  :commands global-flycheck-mode
+  :config (global-flycheck-mode))
 
 (use-package company
   :ensure

; battery status
(use-package fancy-battery
  :ensure
  :idle
  (fancy-battery-mode))

(set-frame-font "Source Code Pro-10.5")


  :ensure
  :diminish yas-minor-mode
  :config
  (progn
    (global-set-key (kbd "M-/") 'company-yasnippet)
    (defun my/disable-yas-in-term ()
      (yas-minor-mode -1))
    (add-to-list 'yas-snippet-dirs "~/.emacs.d/snippets/")
