Latex mode

;;; latex --- Summary
;;; Config for latex
(use-package auctex
:defer t)
(use-package cdlatex
:defer t
(add-hook 'LaTex-mode-hook 'turn-on-org-cdlatex) ;; with AUCTex LaTex mode-line
(add-hook 'LaTex-mode-hook 'turn-on-org-cdlatex) ;; with Emacs latex mode
;; (add-hook 'LaTeX-mode-hook 'turn-on-cdlatex) ; with AUCTeX LaTeX mode
;; (add-hook 'latex-mode-hook 'turn-on-cdlatex) ; with Emacs latex mode
;; latex-preview-pane is a minor mode for Emacs that enables you to preview your LaTeX files directly in Emacs.
(use-package latex-preview-pane
:defer t
;; magical syntax highlighting for LaTeX-mode buffers
;;(require-package 'magic-latex-buffer)
(use-package magic-latex-buffer
:defer t
(add-hook 'latex-mode-hook 'magic-latex-buffer))
;;(add-hook 'latex-mode-hook 'magic-latex-buffer)
;; Adds several useful functionalities to LaTeX-mode.
(use-package latex-extra
:defer t
(add-hook 'latex-mode-hook 'latex-extra-mode))
;;(add-hook 'LaTeX-mode-hook #'latex-extra-mode)