aboutsummaryrefslogtreecommitdiff
path: root/nov.el
diff options
context:
space:
mode:
Diffstat (limited to 'nov.el')
-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