ensure ~/.org-agenda is created if missing

This commit is contained in:
Mike 'Fuzzy' Partin 2024-07-10 02:33:56 -07:00
parent f97596444e
commit d384b7b415
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ LST is reversed and concatenated into a single string with line breaks."
(defun thwap/ensure-directory-exists (dir)
"Ensure the directory DIR exists. If not, create it."
(unless (file-directory-p dir)
(message "Creating missing directory: %s" dir)
(make-directory dir t)))
;; Function to list all files in a directory with a given extension

View File

@ -35,6 +35,7 @@
;; base
(when (memq 'orgmode thwap-orgmode)
(straight-use-package 'org)
(thwap/ensure-directory-exists "~/.org-agenda")
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "firefox-esr"
org-log-done 'time