diff options
author | Vasilij Schneidermann <mail@vasilij.de> | 2018-11-18 08:50:36 +0100 |
---|---|---|
committer | Vasilij Schneidermann <mail@vasilij.de> | 2018-11-18 08:50:36 +0100 |
commit | 77d3b69cd626b7456d5a7912341b73b777973b7a (patch) | |
tree | 73d3be6a6fc6575e67ac88589d6cbe97b4a25788 /nov.el | |
parent | 2a24915bed45364f83aa672c191418a01b4b6d83 (diff) |
Add interop with recentf
Closes #40
Diffstat (limited to 'nov.el')
-rw-r--r-- | nov.el | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |