From e8c1f55d5bb1e2b45a3a751b80974ef6f5abeead Mon Sep 17 00:00:00 2001 From: Flinner Date: Sun, 13 Mar 2022 23:46:43 +0300 Subject: [PATCH] feat: use `/tmp/tex` as tex output, and enable more tex modes for emacs --- emacs.mine/.config/emacs.mine/emacs.org | 15 +++++++++------ latexmk/.latexmkrc | 9 +++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/emacs.mine/.config/emacs.mine/emacs.org b/emacs.mine/.config/emacs.mine/emacs.org index 8214913..67d218a 100644 --- a/emacs.mine/.config/emacs.mine/emacs.org +++ b/emacs.mine/.config/emacs.mine/emacs.org @@ -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 diff --git a/latexmk/.latexmkrc b/latexmk/.latexmkrc index e69de29..a09e990 100644 --- a/latexmk/.latexmkrc +++ b/latexmk/.latexmkrc @@ -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;'; + + + +