diff --git a/.config/emacs/config.el b/.config/emacs/config.el index c46cd2e..4342b73 100644 --- a/.config/emacs/config.el +++ b/.config/emacs/config.el @@ -386,6 +386,7 @@ "s" '(:ignore t :wk "Search") "s d" '(dictionary-search :wk "Search dictionary") "s m" '(man :wk "Man pages") + "s o" '(pdf-occur :wk "Pdf search lines matching STRING") "s t" '(tldr :wk "Lookup TLDR docs for a command") "s w" '(woman :wk "Similar to man but doesn't require man")) @@ -538,7 +539,9 @@ :mode "\\.pdf\\'" :bind (:map pdf-view-mode-map ("j" . pdf-view-next-line-or-next-page) - ("k" . pdf-view-previous-line-or-previous-page)) + ("k" . pdf-view-previous-line-or-previous-page) + ("C-=" . pdf-view-enlarge) + ("C--" . pdf-view-shrink)) :init (pdf-loader-install) :config (add-to-list 'revert-without-query ".pdf")) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 87f903a..3419198 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -532,6 +532,7 @@ You can use the bindings CTRL plus =/- for zooming in/out. You can also use CTR "s" '(:ignore t :wk "Search") "s d" '(dictionary-search :wk "Search dictionary") "s m" '(man :wk "Man pages") + "s o" '(pdf-occur :wk "Pdf search lines matching STRING") "s t" '(tldr :wk "Lookup TLDR docs for a command") "s w" '(woman :wk "Similar to man but doesn't require man")) @@ -781,7 +782,9 @@ Org-tempo is not a separate package but a module within org that can be enabled. :mode "\\.pdf\\'" :bind (:map pdf-view-mode-map ("j" . pdf-view-next-line-or-next-page) - ("k" . pdf-view-previous-line-or-previous-page)) + ("k" . pdf-view-previous-line-or-previous-page) + ("C-=" . pdf-view-enlarge) + ("C--" . pdf-view-shrink)) :init (pdf-loader-install) :config (add-to-list 'revert-without-query ".pdf"))