From 6b68dcceee7f9d43ca72d98589aef51a482d0a96 Mon Sep 17 00:00:00 2001 From: "M. Yas. Davoodeh" Date: Thu, 19 Mar 2020 19:19:35 +0330 Subject: [PATCH] Minor fixes in docs and check for :lang lsp. --- docs/modules.org | 2 +- modules/lang/latex/README.org | 3 ++- modules/lang/latex/config.el | 6 ++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/modules.org b/docs/modules.org index 9eb0b8616..25ed94402 100644 --- a/docs/modules.org +++ b/docs/modules.org @@ -114,7 +114,7 @@ Modules that bring support for a language or group of languages to Emacs. + [[file:../modules/lang/javascript/README.org][javascript]] =+lsp= - JavaScript, TypeScript, and CoffeeScript support + julia - TODO + kotlin =+lsp+= - TODO -+ [[file:../modules/lang/latex/README.org][latex]] =+latexmk +cdlatex= - TODO ++ [[file:../modules/lang/latex/README.org][latex]] =+latexmk +cdlatex= =+lsp= - TODO + lean - TODO + [[file:../modules/lang/ledger/README.org][ledger]] - TODO + lua =+moonscript= - TODO diff --git a/modules/lang/latex/README.org b/modules/lang/latex/README.org index 0fc3bd8a3..9b6fe2e4b 100644 --- a/modules/lang/latex/README.org +++ b/modules/lang/latex/README.org @@ -30,7 +30,8 @@ Provide a helping hand when working with LaTeX documents. ** Module Flags + =+latexmk= Use LatexMk instead of LaTeX to compile documents. + =+cdlatex= Enable [[https://github.com/cdominik/cdlatex][cdlatex]] for fast math insertion. -+ =+lsp= Start LSP automatically in `tex-mode-hook`. ++ =+lsp= Start LSP automatically in `tex-mode-hook`. This + requires the =:tools lsp= module. ** Plugins + [[http://www.gnu.org/software/auctex/][auctex]] diff --git a/modules/lang/latex/config.el b/modules/lang/latex/config.el index 45f3da203..57d64fe60 100644 --- a/modules/lang/latex/config.el +++ b/modules/lang/latex/config.el @@ -181,11 +181,9 @@ If no viewers are found, `latex-preview-pane' is used.") (add-to-list '+latex--company-backends #'+latex-symbols-company-backend nil #'eq)) (after! tex-mode - (when (featurep! +lsp) + (when (and (featurep! +lsp) (featurep! :tools lsp)) (add-hook 'tex-mode-local-vars-hook #'lsp!) - (add-hook 'latex-mode-local-vars-hook #'lsp!) - (after! yatex - (add-hook 'yatex-mode-local-vars-hook #'lsp!)))) + (add-hook 'latex-mode-local-vars-hook #'lsp!))) ;; bibtex + reftex (load! "+ref")