   :diminish company-mode
   :init (add-hook 'after-init-hook 'global-company-mode)
   :config
-  (setq company-auto-complete nil
+  (setq tab-always-indent 'complete
+        company-tooltip-limit 10
         company-tooltip-flip-when-above t
         company-minimum-prefix-length 2
-        company-tooltip-limit 10
+        company-auto-complete nil
         company-idle-delay 0.05
+        company-show-numbers t
         company-echo-delay 0
-        company-begin-commands '(self-insert-command)
-        company-show-numbers t
         company-dabbrev-other-buffers 'all
-        tab-always-indent 'complete
-        company-backends '((company-abbrev
-                            company-bbdb
-                            company-capf
+        company-backends '((company-files
+                            company-abbrev
                             company-dabbrev-code
                             company-dabbrev
+                            company-keywords
+                            company-capf
+                            company-semantic
+                            company-bbdb
                             company-etags
-                            company-files
                             company-gtags
-                            company-keywords
-                            company-oddmuse
-                            company-semantic
-                            ;; company-template
-                            company-tempo))))
-(use-package company-dict
-  :ensure t
-  :after company
-  :config
-  (add-hook 'company-backends 'company-dict)
+                            company-tempo
+                            company-dict
+                            company-yasnippet
+                            company-ispell))))
+(use-package company-dict               ; company-dict
+  :ensure t
+  :after company
+  :config
   (setq company-dict-enable-fuzzy t
         company-dict-enable-yasnippet nil
         company-dict-dir (concat user-emacs-directory "dict/")))

;; - converta a codificação do dicionário com o comando iconv -f ENCODE -t UTF-8 -o XXX
;; - configure a variável company-ispell-dictionary com o dicionário
;; - avançado: obtenha o dicionário pelo LanguageTool
(use-package ispell
  :ensure t
  :after company
  :config
  (setq ispell-program-name "hunspell"
        ispell-dictionary "pt_BR"
        ispell-really-hunspell t
        ;; ispell-complete-word-dict "/home/mdssjc/.emacs.d/dict/pt_BR.dic"
        )
  (add-to-list 'company-backends 'company-ispell))
;; Abreviação (Abbreviation)

;; Template
;; Yasnippet
(use-package yasnippet
  :ensure t
  :diminish yas-minor-mode
  :after company

                               yas-completing-prompt
                               yas-no-prompt
                               yas-x-prompt))
  (yas-global-mode 1)
  (yas-reload-all))
;; ---
