From e345429a482fa0bd8fe7b68f245bdbef953e55c2 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 29 Oct 2025 17:29:55 +0100 Subject: [PATCH] Group PDF settings in a single block --- +ui.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/+ui.el b/+ui.el index 15eecf7..c78c422 100644 --- a/+ui.el +++ b/+ui.el @@ -6,9 +6,11 @@ ;; Display Magit status in fullscreen (after! magit (setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)) -;; Match pdf-tools colors to the theme and fit to page by default +;; Match pdf-tools colors to the theme, fit to page by default and enable smooth scrolling (after! pdf-tools - (setq pdf-view-midnight-colors '("#BBC2CF" . "#282C34"))) + (setq pdf-view-midnight-colors '("#BBC2CF" . "#282C34")) + (setq-default pdf-view-display-size 'fit-width) + (add-hook 'pdf-tools-enabled-hook 'pdf-view-roll-minor-mode)) ;; Customize modeline (setq doom-modeline-major-mode-icon t doom-modeline-buffer-encoding nil)