Added +lsp to Tex-Mode.
This commit is contained in:
parent
4b20c7206e
commit
d046d35aeb
2 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,7 @@ 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`.
|
||||||
|
|
||||||
** Plugins
|
** Plugins
|
||||||
+ [[http://www.gnu.org/software/auctex/][auctex]]
|
+ [[http://www.gnu.org/software/auctex/][auctex]]
|
||||||
|
|
|
@ -180,6 +180,12 @@ If no viewers are found, `latex-preview-pane' is used.")
|
||||||
:init
|
:init
|
||||||
(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
|
||||||
|
(when (featurep! +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!))))
|
||||||
|
|
||||||
;; bibtex + reftex
|
;; bibtex + reftex
|
||||||
(load! "+ref")
|
(load! "+ref")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue