   :when (featurep! :completion helm)
   :commands helm-bibtex)
 
+
+(def-package! company-auctex
+  :when (featurep! :completion company)
+  :commands company-auctex-init
+  :init
+  ;; We can't use the (set! :company-backend ...) because Auctex reports its
+  ;; major-mode as `latex-mode', but uses LaTeX-mode-hook for its mode, which is
+  ;; :company-backend doesn't anticipate (and shouldn't have to!)
+  (add-hook! LaTeX-mode
+    (make-variable-buffer-local 'company-backends)
+    (company-auctex-init)))

(load "auctex" nil t)
(load "auctex-autoloads" nil t)
(push '("\\.[tT]e[xX]\\'" . TeX-latex-mode) auto-mode-alist)

(add-transient-hook! 'LaTeX-mode-hook
  (setq TeX-auto-save t



;;
;; AucTex/LaTeX bootstrap
;;

;; Because tex-mode is built-in and AucTex has conflicting components, we need
