feat: use `/tmp/tex` as tex output, and enable more tex modes for emacs

This commit is contained in:
Flinner 2022-03-13 23:46:43 +03:00
parent 44274771e9
commit e8c1f55d5b
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
2 changed files with 18 additions and 6 deletions

View File

@ -1738,13 +1738,13 @@ AucTex
("C-c C-e" . cdlatex-environment))
:hook
;; (LaTeX-mode . olivetti-mode)
;; (LaTeX-mode . TeX-PDF-mode)
;; (LaTeX-mode . company-mode)
;; (LaTeX-mode . flyspell-mode)
;; (LaTeX-mode . xenops-mode)
;; (LaTeX-mode . flycheck-mode)
;; (LaTeX-mode . olivetti-mode);; already set as a text-mode-hook
;; (LaTeX-mode . TeX-PDF-mode) ;; what does it do?
;; (LaTeX-mode . company-mode) ;; already enabled globaly
;; (LaTeX-mode . xenops-mode) ;; svgs too lagy :(
;; (LaTeX-mode . flycheck-mode);; already enabled with lsp
;; (LaTeX-mode . LaTeX-math-mode)
(LaTeX-mode . flyspell-mode)
(LaTeX-mode . turn-on-reftex)
(LaTeX-mode . TeX-source-correlate-mode)
(LaTeX-mode . try/latex-mode-setup)
@ -1758,6 +1758,9 @@ AucTex
(setq-default TeX-command-default "LatexMK")
(setq TeX-save-query nil)
;; this is becuase i set $out_dir = '/tmp/tex' in `.latexmkrc`
(setq-default TeX-output-dir "/tmp/tex")
(setq reftex-plug-into-AUCTeX t)
;; ;; pdftools

View File

@ -0,0 +1,9 @@
$out_dir = '/tmp/tex';
$pdf_mode = 1;
$pdflatex = 'pdflatex --shell-escape -interaction=nonstopmode -synctex=1 %O %S;';
$pdflualatex = 'lualatex -interaction=nonstopmode -synctex=1 %O %S;';