From 3e9e83a84c2d8c77c5596d29bfa7379a95f9b4e3 Mon Sep 17 00:00:00 2001 From: TEC Date: Thu, 21 Mar 2024 17:18:14 +0800 Subject: [PATCH] Tweak ebook styling This seems to work better after 211f188c7e47. --- config.org | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/config.org b/config.org index 99bf15f..c6270d7 100644 --- a/config.org +++ b/config.org @@ -5582,15 +5582,17 @@ Then, to actually read the ebooks we use =nov=. :height 1.4 :width 'semi-expanded) (face-remap-add-relative 'default :height 1.3) + (variable-pitch-mode 1) (setq-local line-spacing 0.2 next-screen-context-lines 4 shr-use-colors nil) - (require 'visual-fill-column nil t) - (setq-local visual-fill-column-center-text t - visual-fill-column-width 82 - nov-text-width 80) - (visual-fill-column-mode 1) - (hl-line-mode -1) + (when (require 'visual-fill-column nil t) + (setq-local visual-fill-column-center-text t + visual-fill-column-width 64 + nov-text-width 106) + (visual-fill-column-mode 1)) + (when (featurep 'hl-line-mode) + (hl-line-mode -1)) ;; Re-render with new display settings (nov-render-document) ;; Look up words with the dictionary.