fix(latex): modes not remapped to auctex modes
Deduced from a comment in21a252d
(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:
parent
6d9a7e9a8f
commit
fe54aa436c
1 changed files with 9 additions and 1 deletions
|
@ -42,7 +42,15 @@ If no viewer is found, `latex-preview-pane-mode' is used.")
|
|||
;;
|
||||
;; 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
|
||||
TeX-auto-save t ; parse on save
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue