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)