add pdf-tools settings
This commit is contained in:
parent
a34086b7ee
commit
d3167dfc19
2 changed files with 30 additions and 0 deletions
27
modules/tools/pdf/config.el
Normal file
27
modules/tools/pdf/config.el
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
;;; tools/pdf/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(def-package! pdf-tools
|
||||||
|
:init
|
||||||
|
(load "pdf-tools-autoloads.el" nil t t)
|
||||||
|
:config
|
||||||
|
(pdf-tools-install)
|
||||||
|
(setq-default pdf-view-display-size 'fit-page)
|
||||||
|
;; turn off cua so copy works
|
||||||
|
(add-hook 'pdf-view-mode-hook (lambda () (cua-mode 0)))
|
||||||
|
)
|
||||||
|
|
||||||
|
(after! latex
|
||||||
|
(when (featurep! :lang latex)
|
||||||
|
;; add to the program list
|
||||||
|
(add-to-list 'TeX-view-program-selection
|
||||||
|
'(output-pdf "PDF Tools"))
|
||||||
|
(add-to-list 'TeX-view-program-list
|
||||||
|
'("PDF Tools" ("TeX-pdf-tools-sync-view")))
|
||||||
|
;; enable document revert
|
||||||
|
(add-hook 'TeX-after-compilation-finished-functions
|
||||||
|
'TeX-revert-document-buffer)
|
||||||
|
|
||||||
|
;; correlated mode
|
||||||
|
(setq TeX-source-correlate-start-server t)
|
||||||
|
(setq TeX-source-correlate-mode t)
|
||||||
|
))
|
3
modules/tools/pdf/packages.el
Normal file
3
modules/tools/pdf/packages.el
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
;;; tools/pdf/packages.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(package! pdf-tools)
|
Loading…
Add table
Add a link
Reference in a new issue