Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

increase discoverability of auto-trim margins minor mode #326

Closed
wants to merge 3 commits into from

Conversation

emacsomancer
Copy link

added shortcut key to toggle auto-trim-margins mode (i.e. pdf-view-auto-slice-minor-mode), and modified README accordingly. this is an incredibly useful feature for certain scanned documents and seems worth highlighting more prominently. (I ended up re-implementing it at first because the better-documented s b is not terribly useful for scanned documents because it needs resetting each page. Later I came across pdf-view-auto-slice-minor-mode and realised that I'd just re-implemented its functionality.)

lisp/pdf-view.el Outdated
@@ -286,6 +286,7 @@ regarding display of the region in the later function.")
(define-key map (kbd "s m") 'pdf-view-set-slice-using-mouse)
(define-key map (kbd "s b") 'pdf-view-set-slice-from-bounding-box)
(define-key map (kbd "s r") 'pdf-view-reset-slice)
(define-key map (kdb "t") 'pdf-view-auto-slice-minor-mode)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be kbd. Also, I would prefer s a as the binding.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants