lang/latex: general refactor & load optimization

This commit is contained in:
Henrik Lissner 2018-05-29 12:46:13 +02:00
parent f2be46d60f
commit fbce2388ab
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 88 additions and 92 deletions

View file

@ -1,5 +1,15 @@
;;; lang/latex/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(def-setting! :latex-bibtex-file (file)
"Sets the default file RefTeX uses to search for citations."
`(setq +latex-bibtex-file ,file))
;;;###autoload
(def-setting! :latex-bibtex-dir (dir)
"Sets the directory where AUCTeX will search for PDFs associated to BibTeX references."
`(setq +latex-bibtex-dir ,dir))
;;;###autoload
(defun +latex/LaTeX-indent-item ()
"Provide proper indentation for LaTeX \"itemize\",\"enumerate\", and \"description\" environments.