   :ensure
   :diminish yas-minor-mode
   :config
-  (global-set-key (kbd "M-/") 'company-yasnippet)
-  :init
-  (progn
+  (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/")

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

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



(use-package flycheck
  :ensure
  :commands global-flycheck-mode
  :config (global-flycheck-mode))

(use-package company
  :ensure
