I'm trying out the dashboard package and noticed that my
.org files kept getting added to the recentf list, because
dashboard uses OrgMode to generate the agenda that it displays.
So I added code to
dashboard that boils down to:
;; When rendering the dashboard, do the following: ;; if recentf mode is on, turn it off ;; so we don't add items to the Most Recently Used list: (if (recentf-enabled-p) (recentf-mode -1)) ;; render the dashboard by rendering each widget ;; if recentf mode was originally on, turn it back on ;; this is pseudocode, of course :) (if (recentf-WAS-enabled-p) (recentf-mode))
This works (I'm not saving the information into my recentf list) but this also has the effect of saving my recentf list every time that I disable
recentf-mode. This happens every time I switch back to the
My question: is there a way to disable
recentf-modewithout flushing the list to disk?
What I'm really trying to do is temporarily get recentf-mode to stop recording new entries in the list - I'm only turning it off because there doesn't seem to be another way to do that.