auctex: add reftex and enable math mode by default
This commit is contained in:
parent
0d408201cb
commit
52d9316cf4
1 changed files with 6 additions and 0 deletions
6
init.el
6
init.el
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue