lang/latex: fix TeX-latex-mode error

Caused because use-package is creating an autoload for TeX-latex-mode as
if it were in the tex package, but it's in the latex package, instead.

Since auctex already autoloads TeX-latex-mode, there's no need to set
our own.
This commit is contained in:
Henrik Lissner 2018-12-06 19:07:36 -05:00
parent 1610cd32b2
commit 5e96b42ccc
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -25,11 +25,12 @@ If no viewers are found, `latex-preview-pane' is used.")
;;
;; Packages
(def-package! tex
:mode ("\\.tex\\'" . TeX-latex-mode)
:config
(setq TeX-parse-self t ;; parse on load
TeX-auto-save t ;; parse on save
(add-to-list 'auto-mode-alist '("\\.tex\\'" . TeX-latex-mode))
(after! tex
(setq TeX-parse-self t ; parse on load
TeX-auto-save t ; parse on save
;; use hidden dirs for auctex files
TeX-auto-local ".auctex-auto"
TeX-style-local ".auctex-style"