diff --git a/org-roam.el b/org-roam.el index 6fb28f1..30893cb 100644 --- a/org-roam.el +++ b/org-roam.el @@ -773,6 +773,12 @@ INFO is an alist containing additional information." (let ((path (org-roam--file-for-time (time-add 86400 (current-time))))) (org-roam--find-file path))) +(defun org-roam-yesterday () + "Create and find the file for yesterday." + (interactive) + (let ((path (org-roam--file-for-time (time-add -86400 (current-time))))) + (org-roam--find-file path))) + (defun org-roam-date () "Create the file for any date using the calendar." (interactive)