aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2018-11-18 08:50:36 +0100
committerVasilij Schneidermann <mail@vasilij.de>2018-11-18 08:50:36 +0100
commit77d3b69cd626b7456d5a7912341b73b777973b7a (patch)
tree73d3be6a6fc6575e67ac88589d6cbe97b4a25788
parent2a24915bed45364f83aa672c191418a01b4b6d83 (diff)
Add interop with recentf
Closes #40
-rw-r--r--nov.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/nov.el b/nov.el
index f812f22..046f031 100644
--- a/nov.el
+++ b/nov.el
@@ -709,5 +709,15 @@ Saving is only done if `nov-save-place-file' is set."
(nov-render-document)))
(nov-render-document))))
+
+;;; interop
+
+(require 'recentf)
+(defun nov-add-to-recentf ()
+ (when nov-file-name
+ (recentf-add-file nov-file-name)))
+
+(add-hook 'nov-mode-hook 'nov-add-to-recentf)
+
(provide 'nov)
;;; nov.el ends here