Emacs: Refactor text/latex.el.

This commit is contained in:
tastytea 2020-03-27 17:57:55 +01:00
parent ac9c04a7d8
commit 910035067c

View File

@ -1,6 +1,6 @@
;;; latex.el --- Settings for LaTeX. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-18T14:59:09+0100>
;; Time-stamp: <2020-03-27T17:57:36+0100>
;;; Commentary:
@ -12,29 +12,18 @@
:straight auctex
:if (executable-find "xetex")
:functions (TeX-revert-document-buffer)
: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
;; To have the buffer refresh after compilation.
(add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer)
)
: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))
;; Auto complete for LaTeX.
(use-package company-auctex
:after (auctex company)
:hook
(LaTeX-mode . company-auctex-init)
)
:hook (LaTeX-mode . company-auctex-init))
(provide 'text/latex)
;;; latex.el ends here