fix(latex): modes not remapped to auctex modes

Deduced from a comment in 21a252d (where
`TeX-after-compilation-finished-functions` wasn't being triggered
because the user was in latex-mode, instead of LaTeX-mode).

Fix: 21a252d994
This commit is contained in:
Henrik Lissner 2024-09-05 15:59:14 -04:00
parent 6d9a7e9a8f
commit fe54aa436c
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -42,7 +42,15 @@ If no viewer is found, `latex-preview-pane-mode' is used.")
;; ;;
;; Packages ;; Packages
(add-to-list 'auto-mode-alist '("\\.tex\\'" . LaTeX-mode)) ;; HACK: Doom sets `custom-dont-initialize' during the early parts of its
;; startup process. This stops tex-site's setter on `TeX-modes' from
;; activating in `tex-site', which auctex loads *very early* from its
;; autoloads file. `tex-site's existence is hacky (more a historical artifact
;; and necessary evil, given its conflicts with the built in latex modes), so
;; I fix it as a one-off problem rather than a systemic one.
(after! tex-site
(TeX-modes-set 'TeX-modes TeX-modes))
(setq TeX-parse-self t ; parse on load (setq TeX-parse-self t ; parse on load
TeX-auto-save t ; parse on save TeX-auto-save t ; parse on save