Revert PDFs without asking

This commit is contained in:
larstvei 2023-06-15 01:38:09 +02:00
parent 57ec3c7d89
commit df4858b725

View File

@ -818,7 +818,6 @@
(use-package pdf-tools (use-package pdf-tools
:defer t :defer t
:mode "\\.pdf\\'" :mode "\\.pdf\\'"
:init (pdf-loader-install)
:bind (:map pdf-view-mode-map :bind (:map pdf-view-mode-map
("c" . (lambda () ("c" . (lambda ()
(interactive) (interactive)
@ -826,7 +825,9 @@
(setq header-line-format nil) (setq header-line-format nil)
(nano-modeline-pdf-mode)))) (nano-modeline-pdf-mode))))
("j" . pdf-view-next-line-or-next-page) ("j" . pdf-view-next-line-or-next-page)
("k" . pdf-view-previous-line-or-previous-page))) ("k" . pdf-view-previous-line-or-previous-page))
:init (pdf-loader-install)
:config (add-to-list 'revert-without-query ".pdf"))
#+end_src #+end_src