From e7891602617ba5acb5e355e524bdf01833d58990 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 7 Feb 2024 11:04:27 -0500 Subject: [PATCH] [emacs] Add nov.el mode --- emacs/.config/doom/config.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emacs/.config/doom/config.el b/emacs/.config/doom/config.el index 6b22c16..430580e 100644 --- a/emacs/.config/doom/config.el +++ b/emacs/.config/doom/config.el @@ -91,6 +91,13 @@ (defvar host-dir "~/.config/doom/hosts/") (add-load-path! host-dir) +;; Setup nov.el mode for epubs and change font +(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) +(defun my-nov-font-setup () + (face-remap-add-relative 'variable-pitch :family "Overpass" + :height 1.0)) +(add-hook 'nov-mode-hook 'my-nov-font-setup) + ;;(let ((init-host-feature (intern (concat "init-" host ".el")))) ;; (load-file init-host-feature))