Skip to content

Commit

Permalink
refactor(latex): move some vars from builtin to latex
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 8, 2023
1 parent 21c5052 commit 65190dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@

(use-package reftex ;; Inspired by Doom Emacs
:straight (:type built-in)
:hook (LaTeX-mode . turn-on-reftex)
:hook (reftex-toc-mode . reftex-toc-rescan)
:custom
;; Get RefTeX working with BibLaTeX. See: tex.stackexchange.com/a/31992/43165
Expand All @@ -252,7 +251,6 @@
(?t . "\\textcite[]{%l}"))
;; This is needed when `reftex-cite-format' is set. See:
;; superuser.com/a/1386206
(LaTeX-reftex-cite-format-auto-activate nil)
(reftex-plug-into-AUCTeX t)
(reftex-toc-split-windows-fraction 0.3))
:config
Expand Down
4 changes: 3 additions & 1 deletion modules/me-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@

(use-package latex
:straight auctex
:hook (latex-mode . latex-math-mode)
:hook (LaTeX-mode . latex-math-mode)
:hook (LaTeX-mode . turn-on-reftex)
:custom
;; Add the TOC entry to the sectioning hooks.
(LaTeX-fill-break-at-separators nil)
(LaTeX-item-indent 0)
(LaTeX-electric-left-right-brace t)
(LaTeX-reftex-cite-format-auto-activate nil)
:config
;; Set a correct indentation in a few additional environments
(add-to-list 'LaTeX-indent-environment-list '("lstlisting" current-indentation))
Expand Down

0 comments on commit 65190dd

Please sign in to comment.