Fix #4397: call pdf-tools-install-noverify
So pdf-tools has a chance to set up its hooks.
This commit is contained in:
parent
46ac4191e1
commit
a5af17b6aa
1 changed files with 4 additions and 3 deletions
|
@ -38,9 +38,8 @@
|
|||
(message nil) ; flush lingering prompt in echo-area
|
||||
;; Make sure this doesn't run more than once
|
||||
(advice-remove #'pdf-view-mode #'+pdf--install-epdfinfo-a)
|
||||
(if (or (pdf-info-running-p)
|
||||
(ignore-errors (pdf-info-check-epdfinfo) t))
|
||||
(pdf-tools-install-noverify)
|
||||
(unless (or (pdf-info-running-p)
|
||||
(ignore-errors (pdf-info-check-epdfinfo) t))
|
||||
;; HACK On the first pdf you open (before pdf-tools loaded)
|
||||
;; `pdf-tools-install' throws errors because it has hardcoded
|
||||
;; opinions about what buffer should be focused when it is run.
|
||||
|
@ -61,6 +60,8 @@
|
|||
(revert-buffer t t))))))))))
|
||||
((message "Aborted")))))
|
||||
|
||||
(pdf-tools-install-noverify)
|
||||
|
||||
;; For consistency with other special modes
|
||||
(map! :map pdf-view-mode-map :gn "q" #'kill-current-buffer)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue