tools/pdf: conform to code conventions; no-byte-compile packages.el
This commit is contained in:
parent
04a04b2535
commit
eb685d7cc4
2 changed files with 11 additions and 11 deletions
|
@ -1,27 +1,26 @@
|
|||
;;; tools/pdf/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! pdf-tools
|
||||
:init
|
||||
(load "pdf-tools-autoloads.el" nil t t)
|
||||
: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)))
|
||||
)
|
||||
(add-hook! 'pdf-view-mode-hook (cua-mode 0)))
|
||||
|
||||
(after! latex
|
||||
(when (featurep! :lang latex)
|
||||
|
||||
(when (featurep! :lang latex)
|
||||
(after! 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)
|
||||
#'TeX-revert-document-buffer)
|
||||
|
||||
;; correlated mode
|
||||
(setq TeX-source-correlate-start-server t)
|
||||
(setq TeX-source-correlate-mode t)
|
||||
))
|
||||
(setq TeX-source-correlate-start-server t
|
||||
TeX-source-correlate-mode t)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue