needed a progn

This commit is contained in:
Willem van den Ende
2025-09-09 08:32:22 +01:00
parent 8ad26f0c54
commit 5670690ec4
+4 -3
View File
@@ -31,6 +31,7 @@
(setq org-agenda-files (collect-org-agenda-files-)) (setq org-agenda-files (collect-org-agenda-files-))
(defun open-today-log () (defun open-today-log ()
"Open today's log file in log/YYYY-MM-DD.md format. "Open today's log file in log/YYYY-MM-DD.md format.
Creates the log directory if it doesn't exist." Creates the log directory if it doesn't exist."
@@ -42,6 +43,6 @@ Creates the log directory if it doesn't exist."
(make-directory log-dir t)) (make-directory log-dir t))
(let ((file-name (concat log-dir "/" date-str ".md"))) (let ((file-name (concat log-dir "/" date-str ".md")))
(if (file-exists-p file-name) (if (file-exists-p file-name)
(find-file file-name) (find-file file-name)
(find-file file-name) (progn (find-file file-name)
(insert (format "# %s\n\n" date-str)))))) (insert (format "# %s\n\n" date-str))))))))