                                         company-dabbrev-code
                                         company-dabbrev
                                         company-files))
+                    company-transformers '(company-sort-prefer-same-case-prefix)
                     company-minimum-prefix-length 1
-                    company-transformers '(company-sort-prefer-same-case-prefix)
-                    company-idle-delay 0)))
-  (add-hook 'text-mode-hook
-            (lambda ()
-              (setq company-frontends '(company-pseudo-tooltip-unless-just-one-frontend
-                                        company-preview-if-just-one-frontend
-                                        company-preview-common-frontend)
-                    company-search-regexp-function 'regexp-quote)))
+                    company-search-regexp-function 'company-search-flex-regexp)))
   :config
-  (setq company-minimum-prefix-length 2
-        company-idle-delay 0.2
+  (setq company-lighter "ⓐ"
+        company-frontends '(company-pseudo-tooltip-unless-just-one-frontend
+                            company-preview-if-just-one-frontend
+                            company-preview-common-frontend)
+        company-backends '((company-ispell
+                            company-abbrev
+                            company-dabbrev
+                            company-files))
+        company-transformers '(company-sort-prefer-same-case-prefix
+                               company-sort-by-occurrence)
+        company-minimum-prefix-length 2
+        company-idle-delay 0
+        company-occurrence-weight-function 'company-occurrence-prefer-any-closest
+        company-search-regexp-function 'regexp-quote
+        company-require-match nil
         company-show-numbers t
         company-selection-wrap-around t
-        company-backends '((company-ispell company-abbrev company-dabbrev company-files))
-        company-transformers '(company-sort-prefer-same-case-prefix company-sort-by-occurrence)
-        company-occurrence-weight-function 'company-occurrence-prefer-any-closest
-        company-search-regexp-function 'company-search-flex-regexp
-        company-require-match nil
         ;; Tooltip
         company-tooltip-limit 10
         company-tooltip-minimum 5


(use-package company-quickhelp
  :ensure t
  :commands company-quickhelp-mode
  :init
  (add-hook 'prog-mode-hook 'company-quickhelp-mode)
  :config
  (setq company-quickhelp-delay .25
        company-quickhelp-max-lines 30))

(use-package company-statistics

;; Autocompletar (Autocomplete)
(use-package company
  :ensure t
  :diminish company-mode "ⓐ"
  :commands company-mode global-company-mode
  :init
  (add-hook 'after-init-hook 'global-company-mode)
  (add-hook 'prog-mode-hook
