Minor fixes in docs and check for :lang lsp.

This commit is contained in:
M. Yas. Davoodeh 2020-03-19 19:19:35 +03:30
parent d046d35aeb
commit 6b68dcceee
3 changed files with 5 additions and 6 deletions

View file

@ -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 + [[file:../modules/lang/javascript/README.org][javascript]] =+lsp= - JavaScript, TypeScript, and CoffeeScript support
+ julia - TODO + julia - TODO
+ kotlin =+lsp+= - 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 + lean - TODO
+ [[file:../modules/lang/ledger/README.org][ledger]] - TODO + [[file:../modules/lang/ledger/README.org][ledger]] - TODO
+ lua =+moonscript= - TODO + lua =+moonscript= - TODO

View file

@ -30,7 +30,8 @@ Provide a helping hand when working with LaTeX documents.
** Module Flags ** Module Flags
+ =+latexmk= Use LatexMk instead of LaTeX to compile documents. + =+latexmk= Use LatexMk instead of LaTeX to compile documents.
+ =+cdlatex= Enable [[https://github.com/cdominik/cdlatex][cdlatex]] for fast math insertion. + =+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 ** Plugins
+ [[http://www.gnu.org/software/auctex/][auctex]] + [[http://www.gnu.org/software/auctex/][auctex]]

View file

@ -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)) (add-to-list '+latex--company-backends #'+latex-symbols-company-backend nil #'eq))
(after! tex-mode (after! tex-mode
(when (featurep! +lsp) (when (and (featurep! +lsp) (featurep! :tools lsp))
(add-hook 'tex-mode-local-vars-hook #'lsp!) (add-hook 'tex-mode-local-vars-hook #'lsp!)
(add-hook 'latex-mode-local-vars-hook #'lsp!) (add-hook 'latex-mode-local-vars-hook #'lsp!)))
(after! yatex
(add-hook 'yatex-mode-local-vars-hook #'lsp!))))
;; bibtex + reftex ;; bibtex + reftex
(load! "+ref") (load! "+ref")