mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
tools/pdf: don't install pdf-tools on load
Now that pdf-tools-install compiles epdfinfo asynchronously, pdf files are loaded before it is finished, yielding errors while pdf-view-mode initializes. There is currently no effective workaround; pdf-tools-install must be executed manually.
This commit is contained in:
@ -3,9 +3,6 @@
|
|||||||
(use-package! pdf-tools
|
(use-package! pdf-tools
|
||||||
:mode ("\\.pdf\\'" . pdf-view-mode)
|
:mode ("\\.pdf\\'" . pdf-view-mode)
|
||||||
:config
|
:config
|
||||||
(unless noninteractive
|
|
||||||
(pdf-tools-install))
|
|
||||||
|
|
||||||
(map! :map pdf-view-mode-map :gn "q" #'kill-current-buffer)
|
(map! :map pdf-view-mode-map :gn "q" #'kill-current-buffer)
|
||||||
|
|
||||||
(defun +pdf-cleanup-windows-h ()
|
(defun +pdf-cleanup-windows-h ()
|
||||||
|
Reference in New Issue
Block a user