.emacs.d/init.d/text/latex.el

30 lines
843 B
EmacsLisp
Raw Normal View History

2019-10-14 17:38:14 +02:00
;;; latex.el --- Settings for LaTeX. -*- lexical-binding: t; -*-
2020-03-27 17:57:55 +01:00
;; Time-stamp: <2020-03-27T17:57:36+0100>
2019-10-14 17:38:14 +02:00
;;; Commentary:
;;; Code:
(require 'basics/package-management)
2019-10-14 17:38:14 +02:00
(use-package tex-site
:straight auctex
2019-10-14 17:38:14 +02:00
:if (executable-find "xetex")
:functions (TeX-revert-document-buffer)
2020-03-27 17:57:55 +01:00
:custom ((TeX-parse-self t) ; Enable parse on load.
(TeX-auto-save t) ; Enable parse on save.
(TeX-PDF-mode t) ; PDF mode (rather than DVI-mode)
(TeX-engine 'xetex))
:mode ("\\.tex$" . LaTeX-mode)
:config (add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer))
2019-10-14 17:38:14 +02:00
;; Auto complete for LaTeX.
(use-package company-auctex
:after (auctex company)
2020-03-27 17:57:55 +01:00
:hook (LaTeX-mode . company-auctex-init))
2019-10-14 17:38:14 +02:00
(provide 'text/latex)
;;; latex.el ends here