Skip to content

Commit

Permalink
tweak(latex): remove duplicate settings
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 21, 2023
1 parent fb76722 commit 0712396
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modules/me-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
(TeX-auto-local ".auctex-auto") ; use hidden directories for AUCTeX files.
(TeX-style-local ".auctex-style")
(TeX-source-correlate-method 'synctex)
(TeX-electric-math '("$" . "$")) ; auto close inline equations
(TeX-source-correlate-start-server nil) ; don't start the Emacs server when correlating sources.
(TeX-electric-math '("$" . "$")) ; auto close inline equations
(TeX-electric-sub-and-superscript t) ; automatically insert braces after sub/superscript in `LaTeX-math-mode'.
(TeX-save-query nil) ; just save, don't ask before each compilation.
(TeX-engine 'xetex) ; use XeLaTeX by default
Expand Down Expand Up @@ -63,11 +63,6 @@
(add-to-list 'LaTeX-verbatim-macros-with-braces "lstinline")
(add-to-list 'LaTeX-verbatim-macros-with-delims "lstinline")

;; Electric pairs in auctex
(customize-set-variable 'TeX-electric-sub-and-superscript t)
(customize-set-variable 'LaTeX-electric-left-right-brace t)
(customize-set-variable 'TeX-electric-math (cons "$" "$"))

;; Fontification taken from: tex.stackexchange.com/a/86119/81279
(setq font-latex-match-reference-keywords
'(;; BibLaTeX.
Expand Down

0 comments on commit 0712396

Please sign in to comment.