From 42445780fb85810149ba1e3507fe5d86d49f1bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Villagr=C3=A1?= Date: Sun, 12 Jun 2022 23:52:48 +0200 Subject: [PATCH] =?UTF-8?q?Mueve=20la=20configuraci=C3=B3n=20de=20LaTeX=20?= =?UTF-8?q?al=20directorio=20de=20m=C3=B3dulos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 24 ------------------------ modulos/latex-config.el | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 modulos/latex-config.el 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) +