Skip to content

Commit

Permalink
Build pdfinfo if needed.
Browse files Browse the repository at this point in the history
Close #212.
  • Loading branch information
seagle0128 committed May 17, 2020
1 parent 2e5f930 commit aa9eb03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lisp/init-reader.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
("C-s" . isearch-forward))
:init (setq pdf-annot-activate-created-annotations t)
:config
(pdf-tools-install t nil t nil)
;; Build pdfinfo if needed
(advice-add #'pdf-view-decrypt-document :before #'pdf-tools-install)

;; Set dark theme
(defun my-pdf-view-set-midnight-colors ()
Expand Down Expand Up @@ -156,9 +157,9 @@
(when highlight-p
(pdf-view-display-image
(pdf-view-create-image
(pdf-cache-renderpage-highlight
page (car size)
`("white" "steel blue" 0.35 ,@edges))
(pdf-cache-renderpage-highlight
page (car size)
`("white" "steel blue" 0.35 ,@edges))
:map (pdf-view-apply-hotspot-functions
window page size)
:width (car size))))
Expand Down
1 change: 1 addition & 0 deletions lisp/init-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
(use-package hide-mode-line
:hook (((completion-list-mode
completion-in-region-mode
pdf-annot-list-mode
flycheck-error-list-mode) . hide-mode-line-mode)))

;; A minor-mode menu for mode-line
Expand Down

0 comments on commit aa9eb03

Please sign in to comment.