diff --git a/modules/lang/latex/README.org b/modules/lang/latex/README.org index 7de0b851b..8edf9c52d 100644 --- a/modules/lang/latex/README.org +++ b/modules/lang/latex/README.org @@ -27,8 +27,6 @@ Provide a helping hand when working with LaTeX documents. - +fold :: Use TeX-fold (from [[doom-package:auctex]]) to fold LaTeX macros to unicode, and make folding hook-based and less manual. -- +latexmk :: - Use LatexMk instead of LaTeX to compile documents. - +lsp :: Enable LSP support in latex buffers. Requires [[doom-module::tools lsp]] and a langserver (supports digestif and TexLab). @@ -36,7 +34,6 @@ Provide a helping hand when working with LaTeX documents. ** Packages - [[doom-package:adaptive-wrap]] - [[doom-package:auctex]] -- [[doom-package:auctex-latexmk]] if [[doom-module:+latexmk]] - [[doom-package:cdlatex]] if [[doom-module:+cdlatex]] - [[doom-package:evil-tex]] if [[doom-module::editor evil +everywhere]] - [[doom-package:latex-preview-pane]] diff --git a/modules/lang/latex/config.el b/modules/lang/latex/config.el index c24273487..65a07f42c 100644 --- a/modules/lang/latex/config.el +++ b/modules/lang/latex/config.el @@ -250,19 +250,6 @@ Math faces should stay fixed by the mixed-pitch blacklist, this is mostly for :init (setq-default adaptive-wrap-extra-indent 0)) -(use-package! auctex-latexmk - :when (modulep! +latexmk) - :after latex - :init - ;; Pass the -pdf flag when TeX-PDF-mode is active. - (setq auctex-latexmk-inherit-TeX-PDF-mode t) - ;; Set LatexMk as the default. - (setq-hook! LaTeX-mode TeX-command-default "LatexMk") - :config - ;; Add LatexMk as a TeX target. - (auctex-latexmk-setup)) - - (use-package! evil-tex :when (modulep! :editor evil +everywhere) :hook (LaTeX-mode . evil-tex-mode)) diff --git a/modules/lang/latex/packages.el b/modules/lang/latex/packages.el index 61ab4ce0d..9401ee1cd 100644 --- a/modules/lang/latex/packages.el +++ b/modules/lang/latex/packages.el @@ -4,17 +4,14 @@ (package! auctex :recipe (:files ("*.el" "*.info" "dir" "doc" "etc" "images" "latex" "style")) - :pin "280cd4a0ca5a9c80e67efc2bec354b3052258e8d") -(package! adaptive-wrap :pin "a3b179ea21aeb4e8cfaf5646bb66d9d045263780") + :pin "764a53c8e93150f0edd169593a4d453810792abe") +(package! adaptive-wrap :pin "dea4e32c18d285a6ca9f72b1eadd61e27a555ed3") (package! latex-preview-pane :pin "5297668a89996b50b2b62f99cba01cc544dbed2e") (when (modulep! :editor evil +everywhere) (package! evil-tex :pin "2a3177c818f106e6c11032ac261f8691f5e11f74")) ;; Optional module features. -(when (modulep! +latexmk) - (package! auctex-latexmk :pin "b00a95e6b34c94987fda5a57c20cfe2f064b1c7a")) - (when (modulep! +cdlatex) (package! cdlatex :pin "33770dec73138909714711b05a63e79da5a19ccd"))