                   'html-mode-hook
                   'js2-mode-hook)
   :config
-  (use-package flycheck-pos-tip
-    :config (setq flycheck-display-errors-function
-                  #'flycheck-pos-tip-error-messages)))
+  (use-package flycheck-pos-tip)
+  (setq flycheck-display-errors-function
+        #'flycheck-pos-tip-error-messages))
 
 (use-package flyspell
   :diminish " $"

(use-package tex
  :ensure auctex
  :defer t
  ;; :mode
  ;; ("\\.hva\\'" . latex-mode)
  ;; ("\\.drv\\'" . latex-mode)
  ;; ("\\.[tT]e[xX]\\'" . tex-mode)
  ;; ("\\.ins\\'" . tex-mode)
  ;; ("\\.ltx\\'" . latex-mode)
  ;; ("\\.dtx\\'" . doctex-mode)
  ;; ("\\.sty\\'" . latex-mode)
  ;; ("\\.cl[so]\\'" . latex-mode)
  ;; ("\\.bbl\\'" . latex-mode)
  ;; ("\\.bib\\'" . bibtex-mode)
  ;; ("\\.bst\\'" . bibtex-style-mode)
  :init (add-hooks 'LaTeX-mode-hook
                   #'visual-line-mode
                   #'LaTeX-math-mode

  (with-eval-after-load 'company
    (use-package company-auctex
      :config (company-auctex-init))))

;;;;;;;;;;;;;
;; editing ;;
