mirror of https://github.com/Flinner/dots.git
feat: use `/tmp/tex` as tex output, and enable more tex modes for emacs
This commit is contained in:
parent
44274771e9
commit
e8c1f55d5b
|
@ -1738,13 +1738,13 @@ AucTex
|
||||||
("C-c C-e" . cdlatex-environment))
|
("C-c C-e" . cdlatex-environment))
|
||||||
|
|
||||||
:hook
|
:hook
|
||||||
;; (LaTeX-mode . olivetti-mode)
|
;; (LaTeX-mode . olivetti-mode);; already set as a text-mode-hook
|
||||||
;; (LaTeX-mode . TeX-PDF-mode)
|
;; (LaTeX-mode . TeX-PDF-mode) ;; what does it do?
|
||||||
;; (LaTeX-mode . company-mode)
|
;; (LaTeX-mode . company-mode) ;; already enabled globaly
|
||||||
;; (LaTeX-mode . flyspell-mode)
|
;; (LaTeX-mode . xenops-mode) ;; svgs too lagy :(
|
||||||
;; (LaTeX-mode . xenops-mode)
|
;; (LaTeX-mode . flycheck-mode);; already enabled with lsp
|
||||||
;; (LaTeX-mode . flycheck-mode)
|
|
||||||
;; (LaTeX-mode . LaTeX-math-mode)
|
;; (LaTeX-mode . LaTeX-math-mode)
|
||||||
|
(LaTeX-mode . flyspell-mode)
|
||||||
(LaTeX-mode . turn-on-reftex)
|
(LaTeX-mode . turn-on-reftex)
|
||||||
(LaTeX-mode . TeX-source-correlate-mode)
|
(LaTeX-mode . TeX-source-correlate-mode)
|
||||||
(LaTeX-mode . try/latex-mode-setup)
|
(LaTeX-mode . try/latex-mode-setup)
|
||||||
|
@ -1758,6 +1758,9 @@ AucTex
|
||||||
(setq-default TeX-command-default "LatexMK")
|
(setq-default TeX-command-default "LatexMK")
|
||||||
(setq TeX-save-query nil)
|
(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)
|
(setq reftex-plug-into-AUCTeX t)
|
||||||
|
|
||||||
;; ;; pdftools
|
;; ;; pdftools
|
||||||
|
|
|
@ -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;';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue