   :config
   (progn
     (global-company-mode 1)
-
-    (setq company-idle-delay nil)
-    (setq company-minimum-prefix-length 1)
-    (setq company-show-numbers nil)
-    (setq company-tooltip-limit 20)
-
-    (setq company-dabbrev-downcase nil)
-    (setq company-dabbrev-ignore-case nil)
-    (setq company-tooltip-align-annotations t)
-    (setq company-require-match 'never)
-
-    (setq company-global-modes
+    (setq company-idle-delay nil
+          company-minimum-prefix-length 1
+          company-show-numbers nil
+          company-tooltip-limit 20
+          company-dabbrev-downcase nil
+          company-dabbrev-ignore-case nil
+          company-tooltip-align-annotations t
+          company-require-match 'never
+          company-global-modes
           '(not eshell-mode comint-mode org-mode erc-mode message-mode help-mode))
 
     (require 'color)

      ;; Rewrite evil-complete to use company-dabbrev
      (setq company-dabbrev-code-other-buffers t)
      (setq company-dabbrev-code-buffers nil)

      (setq evil-complete-next-func
            (lambda(arg)
              (call-interactively 'company-dabbrev)
              (if (eq company-candidates-length 1)
                (company-complete))))

      (setq evil-complete-previous-func
            (lambda (arg)
              (let ((company-selection-wrap-around t))

    ;; Sort candidates by
    (add-to-list 'company-transformers 'company-sort-by-occurrence)
    ;; (add-to-list 'company-transformers 'company-sort-by-backend-importance)
    (use-package company-statistics
      :config
      (progn
        (setq company-statistics-file (expand-file-name "company-statistics-cache.el" my-tmp-dir))
        (company-statistics-mode)))

    (progn ; frontends
      (setq-default company-frontends '(company-pseudo-tooltip-unless-just-one-frontend
