Emacs: Refactor text/latex.el.
This commit is contained in:
parent
ac9c04a7d8
commit
910035067c
|
@ -1,6 +1,6 @@
|
||||||
;;; latex.el --- Settings for LaTeX. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -12,29 +12,18 @@
|
||||||
:straight auctex
|
:straight auctex
|
||||||
:if (executable-find "xetex")
|
:if (executable-find "xetex")
|
||||||
:functions (TeX-revert-document-buffer)
|
:functions (TeX-revert-document-buffer)
|
||||||
|
:custom ((TeX-parse-self t) ; Enable parse on load.
|
||||||
:custom
|
(TeX-auto-save t) ; Enable parse on save.
|
||||||
(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-PDF-mode t) ; PDF mode (rather than DVI-mode)
|
||||||
(TeX-engine 'xetex)
|
(TeX-engine 'xetex))
|
||||||
|
:mode ("\\.tex$" . LaTeX-mode)
|
||||||
:mode
|
:config (add-hook 'TeX-after-compilation-finished-functions
|
||||||
("\\.tex$" . LaTeX-mode)
|
#'TeX-revert-document-buffer))
|
||||||
|
|
||||||
:config
|
|
||||||
;; To have the buffer refresh after compilation.
|
|
||||||
(add-hook 'TeX-after-compilation-finished-functions
|
|
||||||
#'TeX-revert-document-buffer)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Auto complete for LaTeX.
|
;; Auto complete for LaTeX.
|
||||||
(use-package company-auctex
|
(use-package company-auctex
|
||||||
:after (auctex company)
|
:after (auctex company)
|
||||||
|
:hook (LaTeX-mode . company-auctex-init))
|
||||||
:hook
|
|
||||||
(LaTeX-mode . company-auctex-init)
|
|
||||||
)
|
|
||||||
|
|
||||||
(provide 'text/latex)
|
(provide 'text/latex)
|
||||||
;;; latex.el ends here
|
;;; latex.el ends here
|
||||||
|
|
Loading…
Reference in New Issue
Block a user