Mueve la configuración de LaTeX al directorio de módulos
This commit is contained in:
parent
cb438235f6
commit
42445780fb
24
init.el
24
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)
|
||||
|
||||
|
||||
26
modulos/latex-config.el
Normal file
26
modulos/latex-config.el
Normal 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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user