auctex: add reftex and enable math mode by default

This commit is contained in:
Grigory Shipunov 2021-06-01 10:15:01 +02:00
parent 0d408201cb
commit 52d9316cf4
No known key found for this signature in database
GPG key ID: 77BB6C3E4771EE7C

View file

@ -166,8 +166,14 @@
:defer t
:mode ("\\.tex\\'" . latex-mode)
:straight auctex
:init
(require 'reftex)
(add-hook 'LaTeX-mode-hook 'TeX-PDF-mode)
(add-hook 'LaTeX-mode-hook 'reftex-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
:config
(setq TeX-parse-self t)
(setq reftex-plug-into-AUCTeX t)
;; completion for LaTeX
(use-package company-auctex
:straight t