From 77d3b69cd626b7456d5a7912341b73b777973b7a Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Sun, 18 Nov 2018 08:50:36 +0100 Subject: Add interop with recentf Closes #40 --- nov.el | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3