 (use-package company
   :ensure t
   :defer t
+  :diminish company-mode
   :init
-  (setq company-idle-delay 0.1
+  (global-company-mode)
+  :config
+  (setq company-tooltip-align-annotations t
+        company-idle-delay 0.1
         ;; min prefix of 1 chars
         company-minimum-prefix-length 1)
-  (setq company-tooltip-align-annotations t)
-  (global-company-mode)
-  :config
-  (use-package company-quickhelp
-    :ensure t
-    :init
-    (company-quickhelp-mode 1))
   ;; math
   (use-package company-math
     :ensure t

    (add-hook 'text-mode-hook 'enable-math)
    (eval-after-load 'auctex
      '(add-hook 'LaTeX-mode-hook 'enable-math)))
  ;; sort complections by usage statistics
  (use-package company-statistics
    :ensure t
    :init
    (setq company-statistics-file (emacs-d "cache/company-statistics"))
    :config
    (company-statistics-mode))
  (use-package company-jedi
    :ensure t
    :defer t
    :config
    (defun enable-jedi()
      (setq-local company-backends
                  (append '(company-jedi) company-backends)))
    (add-hook 'python-mode-hook 'enable-jedi))
  )


;; auto correction via abbreviation file
(use-package abbrev
  :config
  (setq abbrev-file-name
        (emacs-d "abbrev_defs"))

;; snippets
(use-package yasnippet
  :ensure t
  :defer t
  :diminish yas-minor-mode
  :init
  ;; set snippet directory
  (setq yas-snippet-dirs (emacs-d "snippets"))
