From 10428092bd279cb8cf2c22e9ecc68e1e7358eb58 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 1 Aug 2022 18:06:40 +0200 Subject: [PATCH] Move pdf-tools config to +ui --- +ui.el | 3 ++- config.el | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/+ui.el b/+ui.el index d71c737..8496fbd 100644 --- a/+ui.el +++ b/+ui.el @@ -6,9 +6,10 @@ ;; 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 +;; Match pdf-tools colors to the theme and fit to page by default (after! pdf-tools (setq pdf-view-midnight-colors '("#ECEFF4" . "#2E3440")) + (setq-default pdf-view-display-size 'fit-width) (add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode)) ;; Customize modeline (setq doom-modeline-major-mode-icon t diff --git a/config.el b/config.el index 1c44b84..9f3bb9f 100644 --- a/config.el +++ b/config.el @@ -72,7 +72,5 @@ "--header-insertion=never" "--header-insertion-decorators=0")) (after! lsp-clangd (set-lsp-priority! 'clangd 2)) -;; Fit PDF to width by default -(setq-default pdf-view-display-size 'fit-width) ;; Use relative line numbers (Usage: number ) (setq display-line-numbers-type 'relative)