From 024bed21d34c87c635dc1d36cd9a392842655727 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 4 Sep 2023 04:28:33 +0300 Subject: thanos-books.el: Add font-size for nov-setup --- .emacs.d/modules/thanos-books.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/modules/thanos-books.el b/.emacs.d/modules/thanos-books.el index 0f17bce..f482b9e 100644 --- a/.emacs.d/modules/thanos-books.el +++ b/.emacs.d/modules/thanos-books.el @@ -38,12 +38,12 @@ (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) (defun thanos/nov-font-setup () - (face-remap-add-relative 'variable-pitch - :family "Jetbrains Mono" - (if is-hermes - :height 99 - :height 120)) - (beacon-mode -1)) + "Setup for nov." + (let ((font-size (if is-hermes 99 120))) + (face-remap-add-relative 'variable-pitch + :family "Jetbrains Mono" + :height font-size) + (beacon-mode -1))) (add-hook 'nov-mode-hook 'thanos/nov-font-setup) -- cgit v1.2.3