diff --git a/init.el b/init.el index b91bfdf..e08d461 100644 --- a/init.el +++ b/init.el @@ -34,12 +34,6 @@ (straight-use-package 'swiper) (straight-use-package 'ace-window) (straight-use-package 'magit) -(straight-use-package 'auctex) -(straight-use-package 'company-auctex) -(straight-use-package 'company-reftex) -(straight-use-package 'reftex) -(straight-use-package 'cdlatex) -(straight-use-package 'latex-extra) (straight-use-package 'org) ;;(straight-use-package 'org-ref) (straight-use-package 'org-ac) @@ -184,21 +178,3 @@ ;; https://github.com/aki2o/org-ac ;;(org-ac/config-default) -; Latex - -;; Inicializa el soporte para company en auctex automáticamente -;; (require 'company-auctex) ;; cargado antes con straight -(add-hook 'LaTeX-mode-hook (lambda ()(company-mode 1))) -(company-auctex-init) - -;; Activa el parser automático, para que funcione C-c C-a -(setq TeX-parse-self t) ; Enable parse on load. -(setq TeX-auto-save t) ; Enable parse on save. -;; RefTeX -(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode -(setq reftex-plug-into-AUCTeX t) ; Conectar a AUC TeX con RefTeX -;; CDLaTeX -(add-hook 'LaTeX-mode-hook 'turn-on-cdlatex) ; with AUCTeX LaTeX mode -;; latex-extra -(add-hook 'LaTeX-mode-hook #'latex-extra-mode) - diff --git a/modulos/latex-config.el b/modulos/latex-config.el new file mode 100644 index 0000000..88da918 --- /dev/null +++ b/modulos/latex-config.el @@ -0,0 +1,26 @@ +; Latex + +(straight-use-package 'auctex) +(straight-use-package 'company-auctex) +(straight-use-package 'company-reftex) +(straight-use-package 'reftex) +(straight-use-package 'cdlatex) +(straight-use-package 'latex-extra) + + +;; Inicializa el soporte para company en auctex automáticamente +;; (require 'company-auctex) ;; cargado antes con straight +(add-hook 'LaTeX-mode-hook (lambda ()(company-mode 1))) +(company-auctex-init) + +;; Activa el parser automático, para que funcione C-c C-a +(setq TeX-parse-self t) ; Enable parse on load. +(setq TeX-auto-save t) ; Enable parse on save. +;; RefTeX +(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode +(setq reftex-plug-into-AUCTeX t) ; Conectar a AUC TeX con RefTeX +;; CDLaTeX +(add-hook 'LaTeX-mode-hook 'turn-on-cdlatex) ; with AUCTeX LaTeX mode +;; latex-extra +(add-hook 'LaTeX-mode-hook #'latex-extra-mode) +