Mueve la configuración de LaTeX al directorio de módulos

This commit is contained in:
Carlos Villagrá 2022-06-12 23:52:48 +02:00
parent cb438235f6
commit 42445780fb
2 changed files with 26 additions and 24 deletions

24
init.el
View File

@ -34,12 +34,6 @@
(straight-use-package 'swiper) (straight-use-package 'swiper)
(straight-use-package 'ace-window) (straight-use-package 'ace-window)
(straight-use-package 'magit) (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)
;;(straight-use-package 'org-ref) ;;(straight-use-package 'org-ref)
(straight-use-package 'org-ac) (straight-use-package 'org-ac)
@ -184,21 +178,3 @@
;; https://github.com/aki2o/org-ac ;; https://github.com/aki2o/org-ac
;;(org-ac/config-default) ;;(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)

26
modulos/latex-config.el Normal file
View File

@ -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)