latex layer: add company-reftex
This commit is contained in:
parent
95940a64ee
commit
2e6e69eeff
|
@ -1688,6 +1688,7 @@ Other:
|
||||||
(thanks to Matt Kramer)
|
(thanks to Matt Kramer)
|
||||||
- Enable auto indent when paste. Remove =latex-mode= from
|
- Enable auto indent when paste. Remove =latex-mode= from
|
||||||
=spacemacs-yank-indent-modes= to disable it (thanks to bet4it)
|
=spacemacs-yank-indent-modes= to disable it (thanks to bet4it)
|
||||||
|
- Added support for =company-reftex= (thanks to et2010)
|
||||||
**** Lua
|
**** Lua
|
||||||
- Added support for auto-completion with =company= (thanks to halfcrazy)
|
- Added support for auto-completion with =company= (thanks to halfcrazy)
|
||||||
**** Language Server Protocol (LSP)
|
**** Language Server Protocol (LSP)
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
auctex
|
auctex
|
||||||
(auctex-latexmk :toggle (string= "LatexMk" latex-build-command))
|
(auctex-latexmk :toggle (string= "LatexMk" latex-build-command))
|
||||||
(company-auctex :requires company)
|
(company-auctex :requires company)
|
||||||
|
(company-reftex :requires company)
|
||||||
evil-matchit
|
evil-matchit
|
||||||
(reftex :location built-in)
|
(reftex :location built-in)
|
||||||
flycheck
|
flycheck
|
||||||
|
@ -144,13 +145,20 @@
|
||||||
:defer t
|
:defer t
|
||||||
:init (spacemacs|add-company-backends
|
:init (spacemacs|add-company-backends
|
||||||
:backends
|
:backends
|
||||||
company-auctex-labels
|
|
||||||
company-auctex-bibs
|
|
||||||
(company-auctex-macros
|
(company-auctex-macros
|
||||||
company-auctex-symbols
|
company-auctex-symbols
|
||||||
company-auctex-environments)
|
company-auctex-environments)
|
||||||
:modes LaTeX-mode)))
|
:modes LaTeX-mode)))
|
||||||
|
|
||||||
|
(defun latex/init-company-reftex ()
|
||||||
|
(use-package company-reftex
|
||||||
|
:defer t
|
||||||
|
:init (spacemacs|add-company-backends
|
||||||
|
:backends
|
||||||
|
company-reftex-labels
|
||||||
|
company-reftex-citations
|
||||||
|
:modes LaTeX-mode)))
|
||||||
|
|
||||||
(defun latex/post-init-evil-matchit ()
|
(defun latex/post-init-evil-matchit ()
|
||||||
(add-hook 'LaTeX-mode-hook 'evil-matchit-mode))
|
(add-hook 'LaTeX-mode-hook 'evil-matchit-mode))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue