 ;; - 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
+(use-package ispell                     ; company-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))
+        ispell-complete-word-dict "/home/mdssjc/.emacs.d/dict/pt_BR.dic"))
 ;; Abreviação (Abbreviation)
 
 ;; Template
 ;; Yasnippet
-(use-package yasnippet
+(use-package yasnippet                  ; company-yasnippet
   :ensure t
   :diminish yas-minor-mode
   :after company

  :diminish company-mode
  :init (add-hook 'after-init-hook 'global-company-mode)
  :config
  (setq company-auto-complete nil
        company-tooltip-flip-when-above t
        company-minimum-prefix-length 2
        company-tooltip-limit 10
        company-idle-delay 0.05
        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-dabbrev-code
                            company-dabbrev
                            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)
  (setq company-dict-enable-fuzzy t
        company-dict-enable-yasnippet nil
        company-dict-dir (concat user-emacs-directory "dict/")))

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