Update nov.el settings and fonts

This commit is contained in:
Colin Powell
2019-12-05 21:17:41 -05:00
parent 91020af93c
commit fb8ae6d15f
4 changed files with 21 additions and 11 deletions

View File

@ -1,6 +1,7 @@
;;; ~/.dotfiles/emacs/.config/doom/+nov.el -*- lexical-binding: t; -*-
(require 'justify-kp)
(setq nov-text-width t)
;(setq nov-text-width t)
(setq nov-text-width 80)
(defun my-nov-window-configuration-change-hook ()
(my-nov-post-html-render-hook)
@ -27,3 +28,9 @@
(add-hook 'nov-post-html-render-hook 'my-nov-post-html-render-hook)
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
(defun my-nov-font-setup ()
(face-remap-add-relative 'variable-pitch :family "Liberation Serif"
:size 20
:height 1.0))
(add-hook 'nov-mode-hook 'my-nov-font-setup)