Autoload `LaTeX-mode'

This commit is contained in:
Gerard Vermeulen 2024-02-09 16:08:04 +01:00
parent e22595b49e
commit 4092de976b

View File

@ -2215,6 +2215,14 @@ configuration objectives:
#+caption: Set =latex= options. #+caption: Set =latex= options.
#+name: lst:set-latex-options #+name: lst:set-latex-options
#+begin_src emacs-lisp -n :results silent #+begin_src emacs-lisp -n :results silent
(autoload 'LaTeX-mode "latex"
"Major mode in AUCTeX for editing LaTeX files.
See info under AUCTeX for full documentation.
Entering LaTeX mode calls the value of `text-mode-hook',
then the value of `TeX-mode-hook', and then the value
of `LaTeX-mode-hook'." 'interactive)
(with-eval-after-load 'latex (with-eval-after-load 'latex
(setopt LaTeX-electric-left-right-brace t (setopt LaTeX-electric-left-right-brace t
LaTeX-section-hook '(LaTeX-section-heading LaTeX-section-hook '(LaTeX-section-heading