Set different font sizes on platforms

This commit is contained in:
Marcus Kammer 2023-12-31 10:36:03 +01:00
parent e1d5c18deb
commit 5bf03d3dab
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -22,10 +22,8 @@
(use-package nov
:hook ((nov-mode . visual-line-mode)
(nov-mode . (lambda ()
(if (eq system-type 'windows-nt)
(setq-local line-spacing 2)
(setq-local line-spacing 4))
(face-remap-add-relative 'variable-pitch :weight 'normal :height 1.1 :family "Noto Serif"))))
(if (eq system-type 'windows-nt) (setq-local line-spacing 2) (setq-local line-spacing 4))
(face-remap-add-relative 'variable-pitch :weight 'normal :height (if (eq system-type 'windows-nt) 1.0 1.1) :family "Noto Serif"))))
:mode ("\\.epub\\'" . nov-mode)
:init
(add-hook 'nov-mode-hook #'shrface-mode)
@ -338,5 +336,5 @@
(gptel-default-mode 'org-mode)
(gptel-model "gpt-4")
:config
(when (eq system-name 'windows-nt)
(when (eq system-type 'windows-nt)
(setq gptel-use-curl nil)))