2019-12-10 10:17:06 +00:00
|
|
|
;;; latex-init --- The entry point for latex extension
|
|
|
|
;;; Commentary:
|
|
|
|
;;; Code:
|
2019-12-09 21:58:43 +00:00
|
|
|
(defun latex-run-lsp ()
|
2019-12-10 10:17:06 +00:00
|
|
|
"Run lsp-mode and set the texlab executable path."
|
2019-12-09 21:58:43 +00:00
|
|
|
(require 'extensions/latex/lsp-latex)
|
|
|
|
(setq lsp-latex-texlab-executable "texlab")
|
|
|
|
(lsp))
|
|
|
|
|
|
|
|
|
2018-12-28 16:14:32 +00:00
|
|
|
;;;###autoload
|
2018-12-28 15:33:29 +00:00
|
|
|
(defun extensions/latex-initialize ()
|
2019-12-09 21:23:35 +00:00
|
|
|
"Latex autocompletion support."
|
|
|
|
(ability lsp-latex ('lsp)
|
2019-12-09 21:58:43 +00:00
|
|
|
(add-hook 'tex-mode-hook 'latex-run-lsp)))
|
2018-12-28 15:33:29 +00:00
|
|
|
|
|
|
|
(provide 'extensions/latex/init)
|
2019-12-10 10:17:06 +00:00
|
|
|
;;; init.el ends here
|