Tweak my AUCTeX configuration

This commit is contained in:
Gerard Vermeulen 2021-12-07 17:22:31 +01:00
parent ef4d540a0e
commit 19e8e4a53d

View File

@ -602,8 +602,16 @@ below corrects this by advising to override ~TeX-brace-count-line~ with
#+attr_latex: :options bgcolor=LightGoldenrodYellow #+attr_latex: :options bgcolor=LightGoldenrodYellow
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; Try to get the `safe-local-variable` predicate for `TeX-master` ;; Try to get the `safe-local-variable' predicate for `TeX-master'
(when (require 'tex nil 'noerror) (when (require 'tex nil 'noerror)
(custom-set-variables
'(LaTeX-section-hook '(LaTeX-section-heading
LaTeX-section-title
LaTeX-section-toc
LaTeX-section-section
LaTeX-section-label))
'(TeX-auto-save t)
'(TeX-parse-self t))
;; https://emacs.stackexchange.com/questions/17396/indentation-in-square-brackets ;; https://emacs.stackexchange.com/questions/17396/indentation-in-square-brackets
(defun my-TeX-brace-count-line () (defun my-TeX-brace-count-line ()
"Count number of open/closed braces." "Count number of open/closed braces."
@ -1063,7 +1071,6 @@ Emacs prevents new users from shooting themselves in the feet.
'(sp-override-key-bindings '(("C-(" . sp-backward-barf-sexp) '(sp-override-key-bindings '(("C-(" . sp-backward-barf-sexp)
("C-)" . sp-forward-slurp-sexp)))) ("C-)" . sp-forward-slurp-sexp))))
(add-hook 'LaTeX-mode-hook #'turn-off-smartparens-mode)
(add-hook 'prog-mode-hook #'turn-on-smartparens-mode) (add-hook 'prog-mode-hook #'turn-on-smartparens-mode)
(add-hook 'text-mode-hook #'turn-on-smartparens-mode) (add-hook 'text-mode-hook #'turn-on-smartparens-mode)