Add ebook management/reading

This commit is contained in:
Jeremy Dormitzer 2021-03-01 21:17:20 -05:00
parent 5001c485f6
commit c2e2e9e780
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
;; -*- lexical-binding: t; -*-
(use-package nov
:mode (("\\.epub\\'" . nov-mode))
:config
(evil-collection-nov-setup))
(defvar ebook-library
(expand-file-name "~/Sync/Calibre Library")
"Ebook library directory")
(defun find-ebook (book)
"Finds an ebook from my library"
(interactive (list
(completing-read
"Book: "
(directory-files-recursively ebook-library
"\\.epub$"))))
(find-file book))
(provide 'init-epub)

View File

@ -89,3 +89,4 @@
(require 'init-direnv)
(require 'init-email)
(require 'init-kubernetes)
(require 'init-epub)