needed a progn
This commit is contained in:
@@ -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."
|
||||||
@@ -43,5 +44,5 @@ Creates the log directory if it doesn't exist."
|
|||||||
(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))))))))
|
||||||
|
|||||||
Reference in New Issue
Block a user