Skip to content

Commit

Permalink
fix(pdfgrep): autoload commands + require pdf-isearch
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Feb 26, 2024
1 parent 2c5d1a0 commit 70ce45c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/me-docs.el
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
(pdf-view-image-relief 2)
(pdf-view-use-scaling t))

(use-package pdf-isearch
:hook (pdf-view-mode . pdf-isearch-minor-mode))

(use-package pdf-view-restore
:straight t
:hook (pdf-view-mode . pdf-view-restore-mode)
Expand All @@ -27,11 +30,11 @@

(use-package pdfgrep
:straight t
:when (executable-find "pdfgrep")
:commands pdfgrep-mode pdfgrep
:custom
(pdfgrep-options " -H -n -r --include \"*.pdf\" ")
:config
(grep-mode 1))
(pdfgrep-mode 1))

(use-package nov
:straight t
Expand Down

0 comments on commit 70ce45c

Please sign in to comment.