From 608f52a4a048e5a76d44cc3d01b1192546570159 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 5 Jan 2022 19:19:45 +0100 Subject: Create agenda file if non-existant. --- smart-documents.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smart-documents.org b/smart-documents.org index 46597ee..eb67493 100644 --- a/smart-documents.org +++ b/smart-documents.org @@ -1313,6 +1313,14 @@ The diary file can be included in all agenda views. *** List of agenda files +If the agenda file does not already exist, create it at the expected location. + +#+BEGIN_SRC emacs-lisp :tangle yes + (unless (file-exists-p (concat sd-path-meta "org-agenda-files")) + (with-temp-buffer + (write-file (concat sd-path-meta "org-agenda-files")))) +#+END_SRC + The list of agenda files is saved at the following location. #+BEGIN_SRC emacs-lisp :tangle yes -- cgit v1.2.3