diff options
| author | Ravi R Kiran <aine.marina@gmail.com> | 2021-11-16 03:57:07 (GMT) |
|---|---|---|
| committer | Ravi R Kiran <aine.marina@gmail.com> | 2021-11-16 03:57:07 (GMT) |
| commit | 533f1325917977b0c34a775c423a64c724dc8f5d (patch) | |
| tree | 167b2944f0696c092598bb96e87fdfa01899954d /lisp/ravi-init-tex.el | |
| parent | 5ab7ef068ed223dac0f3d9e5bd0ceb9ac9b69203 (diff) | |
| download | dotemacs-533f1325917977b0c34a775c423a64c724dc8f5d.zip dotemacs-533f1325917977b0c34a775c423a64c724dc8f5d.tar.gz dotemacs-533f1325917977b0c34a775c423a64c724dc8f5d.tar.bz2 | |
Ordering fixes to load correctly
This is fragile.
Diffstat (limited to 'lisp/ravi-init-tex.el')
| -rw-r--r-- | lisp/ravi-init-tex.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/ravi-init-tex.el b/lisp/ravi-init-tex.el index 892aa0e..b17248f 100644 --- a/lisp/ravi-init-tex.el +++ b/lisp/ravi-init-tex.el @@ -34,19 +34,21 @@ (setq TeX-save-query nil) (setq TeX-show-compilation t) (defun ravi/tex-common-hook () - (message "Running tex mode common hook") + (prettify-symbols-mode 1) (TeX-PDF-mode t) (TeX-fold-mode t) (TeX-source-correlate-mode 1)) + (use-package company-math) + (use-package company-auctex) :hook (TeX-mode-hook . ravi/tex-common-hook)) (use-package latex :ensure auctex :mode ("\\.tex\\'" . latex-mode) - :hook ((LaTeX-mode-hook . prettify-symbols-mode) - (LaTeX-mode-hook . ravi/latex-init)) + :hook ((LaTeX-mode-hook . ravi/latex-init)) :bind (:map LaTeX-mode-map ("C-S-e" . karthinks/latex-math-from-calc)) + :defer t :config ;; Format math as a Latex string with Calc (defun karthinks/latex-math-from-calc () @@ -84,6 +86,7 @@ (use-package cdlatex :ensure t + :after latex :hook (LaTeX-mode-hook . turn-on-cdlatex) :bind (:map cdlatex-mode-map ("<tab>" . cdlatex-tab))) @@ -177,15 +180,12 @@ :hook (LaTeX-mode-hook . latex-extra-mode) :diminish latex-extra-mode) -(use-package company-math) -(use-package company-auctex) - (use-package reftex :after (latex) :hook ((LaTeX-mode-hook . turn-on-reftex)) :config - (setq reftex-plug-into-AUCTeX t)) -(use-package company-reftex) + (setq reftex-plug-into-AUCTeX t) + (use-package company-reftex)) (provide 'ravi-init-tex) ;;; ravi-init-tex.el ends here |
