diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-29 22:07:45 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-29 22:07:45 -0400 |
| commit | 659197c7b2518bbea7f8c8f20f8970e9fdaa218b (patch) | |
| tree | 587ab287c12497566be0dfe8d90ba60696bce8df /init.el | |
| parent | a200947f67df4e906ba3a2b40cc0be056a2112e7 (diff) | |
| download | dotemacs-659197c7b2518bbea7f8c8f20f8970e9fdaa218b.tar.gz dotemacs-659197c7b2518bbea7f8c8f20f8970e9fdaa218b.zip | |
feat(nov): reading-view theme layer with palettes and font sizing
EPUB reading prefs were scattered: a hardcoded Merriweather/180 font-remap in calibredb-epub-config's nov hook, no color control (the old sepia foreground had been stripped), and a frame-global EBook fontaine preset as the only way to size up. That preset resized the font in every buffer in the frame, not just the book.
I pulled the reading view into its own layer, modules/nov-reading.el, on top of stock nov (no fork). It owns three things, all buffer-local: a reading palette (sepia/dark/light, each a face the dupre theme owns, sepia the default), the serif typography (family plus a defcustom base height replacing the hardcoded 180), and page font sizing (+/- bump the size live, = resets to the base). Width moves to { }. calibredb-epub-config keeps the library and width/centering layout. Its nov hook now calls into the layer.
The three palette faces register as a nov-reading app in theme-studio (face_data.py), so they're tunable there like any other app. I dropped the EBook fontaine preset, since reading size is buffer-local now.
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -90,6 +90,7 @@ ;; ---------------------- Added Features And Integrations ---------------------- +(require 'nov-reading) ;; epub reading-view theme layer (palettes + size) (require 'calibredb-epub-config) ;; ebook reader/manager settings (require 'dashboard-config) ;; the nice landing page with links (require 'dirvish-config) ;; file manager configuration |
