aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-04-07 23:15:48 -0700
committerGravatar Tom Willemse2020-04-07 23:15:48 -0700
commit86f4264e3f1c97dfb03308f8f0ba9dfb4027781b (patch)
tree63e966948edcd28c17e9e1ccb5c2ff890e6776c5
parenta8b95ba858abd996e8cea29a952a75c152d8802c (diff)
downloademacs-config-86f4264e3f1c97dfb03308f8f0ba9dfb4027781b.tar.gz
emacs-config-86f4264e3f1c97dfb03308f8f0ba9dfb4027781b.zip
Use ‘nov-mode’ for ‘.epub’ files
-rw-r--r--oni-epub.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/oni-epub.el b/oni-epub.el
index 2cd8572..e8213c2 100644
--- a/oni-epub.el
+++ b/oni-epub.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2020.0329.235548
+;; Version: 2020.0407.231536
;; Package-Requires: (nov)
;; This program is free software; you can redistribute it and/or modify
@@ -26,6 +26,9 @@
;;; Code:
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
+
;;;###autoload(with-eval-after-load 'nov (require 'oni-epub))
(provide 'oni-epub)