Move hooks to (after! tex)
block
This commit is contained in:
parent
6b68dcceee
commit
76ae9e687a
1 changed files with 5 additions and 6 deletions
|
@ -74,7 +74,11 @@ If no viewers are found, `latex-preview-pane' is used.")
|
|||
(sp-local-pair modes open nil :actions :rem))
|
||||
;; And tweak these so that users can decide whether they want use latex
|
||||
;; quotes or not, via `+latex-enable-plain-double-quotes'
|
||||
(sp-local-pair modes "``" nil :unless '(:add sp-in-math-p)))))
|
||||
(sp-local-pair modes "``" nil :unless '(:add sp-in-math-p))))
|
||||
;; Hook lsp if enabled
|
||||
(when (and (featurep! +lsp) (featurep! :tools lsp))
|
||||
(add-hook 'tex-mode-local-vars-hook #'lsp!)
|
||||
(add-hook 'latex-mode-local-vars-hook #'lsp!)))
|
||||
|
||||
|
||||
(after! latex
|
||||
|
@ -180,10 +184,5 @@ If no viewers are found, `latex-preview-pane' is used.")
|
|||
:init
|
||||
(add-to-list '+latex--company-backends #'+latex-symbols-company-backend nil #'eq))
|
||||
|
||||
(after! tex-mode
|
||||
(when (and (featurep! +lsp) (featurep! :tools lsp))
|
||||
(add-hook 'tex-mode-local-vars-hook #'lsp!)
|
||||
(add-hook 'latex-mode-local-vars-hook #'lsp!)))
|
||||
|
||||
;; bibtex + reftex
|
||||
(load! "+ref")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue