This shouldn't be tied to pdf-tools
This commit is contained in:
parent
fae43bea51
commit
e7465018fc
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
;;; lang/latex/+viewers.el -*- lexical-binding: t; -*-
|
;;; lang/latex/+viewers.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;; Update PDF buffers after successful LaTeX runs
|
||||||
|
(add-hook 'TeX-after-compilation-finished-function #'TeX-revert-document-buffer)
|
||||||
|
|
||||||
(when (featurep! +okular)
|
(when (featurep! +okular)
|
||||||
;; Configure Okular as viewer. Including a bug fix
|
;; Configure Okular as viewer. Including a bug fix
|
||||||
;; (https://bugs.kde.org/show_bug.cgi?id=373855)
|
;; (https://bugs.kde.org/show_bug.cgi?id=373855)
|
||||||
|
@ -17,6 +20,4 @@
|
||||||
;; Or PDF-tools, but only if the module is also loaded
|
;; Or PDF-tools, but only if the module is also loaded
|
||||||
(when (and (featurep! :tools pdf)
|
(when (and (featurep! :tools pdf)
|
||||||
(featurep! +pdf-tools))
|
(featurep! +pdf-tools))
|
||||||
(add-to-list 'TeX-view-program-selection '(output-pdf "PDF Tools"))
|
(add-to-list 'TeX-view-program-selection '(output-pdf "PDF Tools")))
|
||||||
;; Enable auto reverting the PDF document with PDF Tools
|
|
||||||
(add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue