Spacemacs use tabs for LaTeX indent and make it faster

This commit is contained in:
Leni Ven 2023-01-18 21:41:43 -08:00
parent 81eb2a12eb
commit 2d0e67e025
1 changed files with 9 additions and 0 deletions

View File

@ -29,9 +29,11 @@
) )
(defun custom/latex-hook () (defun custom/latex-hook ()
(custom/common-program-hook) (custom/common-program-hook)
(indent-tabs-mode)
) )
(add-hook 'text-mode-hook 'custom/common-richtext-hook) (add-hook 'text-mode-hook 'custom/common-richtext-hook)
(add-hook 'LaTeX-mode-hook 'custom/latex-hook)
(add-hook 'latex-mode-hook 'custom/latex-hook) (add-hook 'latex-mode-hook 'custom/latex-hook)
(add-hook 'prog-mode-hook 'custom/common-program-hook) (add-hook 'prog-mode-hook 'custom/common-program-hook)
@ -108,3 +110,10 @@
(setq display-time-24hr-format t) (setq display-time-24hr-format t)
(setq display-time-format "%H:%M") (setq display-time-format "%H:%M")
;; Optimizations
;; font-lock mode is always slow in latex
(setq font-lock-maximum-decoration
'((latex-mode . 2)
(t . t)))