From b74cc143779bc67e82a9f6f2059ad4d4fdef02db Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Mon, 2 Mar 2020 02:53:53 +0800 Subject: [PATCH] (feature): add org-roam-yesterday (#215) Closes #214 --- org-roam.el | 6 ++++++ 1 file changed, 6 insertions(+) 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)