diff options
author | Thanos Apollo <[email protected]> | 2023-09-04 04:28:33 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-04 04:28:33 +0300 |
commit | 024bed21d34c87c635dc1d36cd9a392842655727 (patch) | |
tree | 94ff07266d74bad1e54986990903b531b9f4a284 /.emacs.d | |
parent | 8953c8dd4209c3a6f76fb31ef72fcd4b534a2038 (diff) |
thanos-books.el: Add font-size for nov-setup
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/modules/thanos-books.el | 12 |
1 files changed, 6 insertions, 6 deletions
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) |