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
|
:defer t
|
||||||
:mode ("\\.tex\\'" . latex-mode)
|
:mode ("\\.tex\\'" . latex-mode)
|
||||||
:straight auctex
|
: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
|
:config
|
||||||
(setq TeX-parse-self t)
|
(setq TeX-parse-self t)
|
||||||
|
(setq reftex-plug-into-AUCTeX t)
|
||||||
;; completion for LaTeX
|
;; completion for LaTeX
|
||||||
(use-package company-auctex
|
(use-package company-auctex
|
||||||
:straight t
|
:straight t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue