From 2d0e67e0257dbf1d6a57e4537b6b355dcc1f87ab Mon Sep 17 00:00:00 2001 From: Leni Ven Date: Wed, 18 Jan 2023 21:41:43 -0800 Subject: [PATCH] Spacemacs use tabs for LaTeX indent and make it faster --- home/spacemacs/user-config.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/spacemacs/user-config.el b/home/spacemacs/user-config.el index bf2cb4b..a4f3363 100644 --- a/home/spacemacs/user-config.el +++ b/home/spacemacs/user-config.el @@ -29,9 +29,11 @@ ) (defun custom/latex-hook () (custom/common-program-hook) + (indent-tabs-mode) ) (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 'prog-mode-hook 'custom/common-program-hook) @@ -108,3 +110,10 @@ (setq display-time-24hr-format t) (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))) +