summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <blendux@blendux.home>2022-01-05 19:19:45 +0100
committerMarius Peter <blendux@blendux.home>2022-01-05 19:19:45 +0100
commit608f52a4a048e5a76d44cc3d01b1192546570159 (patch)
tree75a3f814688ccbfc476f0d954b1516c140a1a251
parentb90bcd4f2574c1585f3f7d79f160bccea72073dd (diff)
Create agenda file if non-existant.
-rw-r--r--smart-documents.org8
1 files changed, 8 insertions, 0 deletions
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
Copyright 2019--2024 Marius PETER