The latex extension styling has been improved

This commit is contained in:
Sameer Rahmani 2019-12-10 10:17:06 +00:00
parent fe793e77aa
commit 1ab29699ff
2 changed files with 9 additions and 3 deletions

View File

@ -1,10 +1,10 @@
;;; latex-extension --- Latex extension for FG42
;;; Commentary:
;;; Code:
(require 'fpkg)
(require 'fg42/extension)
(require 'extensions/latex/init)
;; Dependencies ----------------------------------
;(depends-on 'lsp-mode)
;TODO: add to MELPA and remove lsp-latex.el file beside init.el
;(with-ability lsp-latex (depends-on 'lsp-latex))
@ -18,3 +18,4 @@
:docs "lib/extensions/latex/readme.org")
(provide 'extensions/latex)
;;; latex.el ends here

View File

@ -1,4 +1,8 @@
;;; latex-init --- The entry point for latex extension
;;; Commentary:
;;; Code:
(defun latex-run-lsp ()
"Run lsp-mode and set the texlab executable path."
(require 'extensions/latex/lsp-latex)
(setq lsp-latex-texlab-executable "texlab")
(lsp))
@ -11,3 +15,4 @@
(add-hook 'tex-mode-hook 'latex-run-lsp)))
(provide 'extensions/latex/init)
;;; init.el ends here