forked from FG42/FG42
1
0
Fork 0
FG42/lib/extensions/latex/init.el

20 lines
496 B
EmacsLisp
Raw Normal View History

;;; latex-init --- The entry point for latex extension
;;; Commentary:
;;; Code:
2019-12-09 21:58:43 +00:00
(defun latex-run-lsp ()
(interactive)
"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))
;;;###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)
;;; init.el ends here