Browse Source

[emacs] Add nov.el mode

Colin Powell 1 year ago
parent
commit
e789160261
1 changed files with 7 additions and 0 deletions
  1. 7 0
      emacs/.config/doom/config.el

+ 7 - 0
emacs/.config/doom/config.el

@@ -91,6 +91,13 @@
 (defvar host-dir "~/.config/doom/hosts/")
 (defvar host-dir "~/.config/doom/hosts/")
 (add-load-path! host-dir)
 (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"))))
 ;;(let ((init-host-feature (intern (concat "init-" host ".el"))))
 ;;  (load-file init-host-feature))
 ;;  (load-file init-host-feature))