Move pdf-tools config to +ui

This commit is contained in:
coolneng 2022-08-01 18:06:40 +02:00
parent 60e45e6874
commit 10428092bd
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 2 additions and 3 deletions

3
+ui.el
View File

@ -6,9 +6,10 @@
;; Display Magit status in fullscreen ;; Display Magit status in fullscreen
(after! magit (after! magit
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)) (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 (after! pdf-tools
(setq pdf-view-midnight-colors '("#ECEFF4" . "#2E3440")) (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)) (add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))
;; Customize modeline ;; Customize modeline
(setq doom-modeline-major-mode-icon t (setq doom-modeline-major-mode-icon t

View File

@ -72,7 +72,5 @@
"--header-insertion=never" "--header-insertion=never"
"--header-insertion-decorators=0")) "--header-insertion-decorators=0"))
(after! lsp-clangd (set-lsp-priority! 'clangd 2)) (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 <j/k>) ;; Use relative line numbers (Usage: number <j/k>)
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)