diff --git a/.emacs b/.emacs index c6bf511..a903dba 100644 --- a/.emacs +++ b/.emacs @@ -164,23 +164,17 @@ (setq pdf-info-epdfinfo-program "/usr/local/bin/epdfinfo") (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) ) - - -;; (use-package pdf-tools -;; :ensure nil -;; :pin melpa -;; :config -;; (custom-set-variables -;; '(pdf-tools-handle-upgrades nil)) ; Use brew upgrade pdf-tools instead. -;; (setq pdf-info-epdfinfo-program "/usr/local/bin/epdfinfo")) -;; ;;----------------------- -;; ;; Use pdf-tools to open PDF files -;; (setq TeX-view-program-selection '((output-pdf "PDF Tools")) -;; TeX-source-correlate-start-server t) -;;(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) -;; ;; Update PDF buffers after successful LaTeX runs -;; (add-hook 'TeX-after-compilation-finished-functions -;; #'TeX-revert-document-buffer) +;;-------- +;; latex-preview +(use-package latex-preview-pane + :ensure t) +;; latexmk +(use-package auctex-latexmk + :ensure t + :init + (auctex-latexmk-setup) + :config + (setq auctex-latexmk-inherit-TeX-PDF-mode t)) ;;---------------------- ;; flycheck (use-package flycheck @@ -430,7 +424,7 @@ ("99ea831ca79a916f1bd789de366b639d09811501e8c092c85b2cb7d697777f93" "bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" default))) '(package-selected-packages (quote - (org-pomodoro which-key virtualenvwrapper use-package treemacs-projectile pdf-tools org-bullets mu4e-maildirs-extension mu4e-alert magit helm-projectile helm-mu flycheck expand-region doom-themes doom-modeline dashboard company auctex))) + (latex-preview-pane org-pomodoro which-key virtualenvwrapper use-package treemacs-projectile pdf-tools org-bullets mu4e-maildirs-extension mu4e-alert magit helm-projectile helm-mu flycheck expand-region doom-themes doom-modeline dashboard company auctex))) '(pdf-tools-handle-upgrades nil) '(safe-local-variable-values (quote