diff options
| author | Andreas Politz <politza@hochschule-trier.de> | 2019-01-20 20:12:55 +0100 |
|---|---|---|
| committer | Andreas Politz <politza@hochschule-trier.de> | 2019-01-20 20:12:55 +0100 |
| commit | 7a6c2382f347feeffe96d28c66503b243aafedbe (patch) | |
| tree | 487337797f83d307c07e8ee8cb6a5f74c661eabd | |
| parent | 0869ccc03c30fcc779c881d695851607a3fa60d0 (diff) | |
Disable automatic image scaling in PDF buffers
| -rw-r--r-- | lisp/pdf-view.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/pdf-view.el b/lisp/pdf-view.el index 2eecb8e..cc85c05 100644 --- a/lisp/pdf-view.el +++ b/lisp/pdf-view.el @@ -373,6 +373,9 @@ PNG images in Emacs buffers." (setq-local revert-buffer-function #'pdf-view-revert-buffer) ;; No auto-save at the moment. (setq-local buffer-auto-save-file-name nil) + ;; Disable image rescaling. + (when (boundp 'image-scaling-factor) + (setq-local image-scaling-factor 1)) ;; No undo at the moment. (unless buffer-undo-list (buffer-disable-undo)) |
