From 16f9b6e39bb92fa9d9c9c8a5da76f8f11e65702b Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 24 Sep 2024 17:54:04 +0100 Subject: [PATCH] Add hooks to disable visual-fill-column-mode for doc-view and images doc-view disable internal scaling, for better resolution --- README.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index 5c68899..f0d7628 100644 --- a/README.org +++ b/README.org @@ -172,7 +172,8 @@ Configure the look and feel of Emacs (add-to-list 'package-selected-packages 'visual-fill-column) (use-package visual-fill-column :if (package-installed-p 'visual-fill-column) - :hook (org-src-mode . visual-fill-column-mode) + :hook ((org-src-mode . (lambda () (visual-fill-column-mode +1))) + ((doc-view-mode image-mode) . (lambda () (visual-fill-column-mode -1)))) :custom (visual-fill-column-width 160) (visual-fill-column-center-text t) @@ -1560,8 +1561,7 @@ Configure email with iCalendar event support, to integrate with :custom (doc-view-resolution 200) (doc-view-imenu-enabled t) - (doc-view-scale-internally t) - (doc-view-image-width 850)) + (doc-view-scale-internally nil)) (add-to-list 'package-selected-packages 'auctex) (use-package auctex