ensure ~/.org-agenda is created if missing
This commit is contained in:
parent
f97596444e
commit
d384b7b415
@ -33,6 +33,7 @@ LST is reversed and concatenated into a single string with line breaks."
|
|||||||
(defun thwap/ensure-directory-exists (dir)
|
(defun thwap/ensure-directory-exists (dir)
|
||||||
"Ensure the directory DIR exists. If not, create it."
|
"Ensure the directory DIR exists. If not, create it."
|
||||||
(unless (file-directory-p dir)
|
(unless (file-directory-p dir)
|
||||||
|
(message "Creating missing directory: %s" dir)
|
||||||
(make-directory dir t)))
|
(make-directory dir t)))
|
||||||
|
|
||||||
;; Function to list all files in a directory with a given extension
|
;; Function to list all files in a directory with a given extension
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
;; base
|
;; base
|
||||||
(when (memq 'orgmode thwap-orgmode)
|
(when (memq 'orgmode thwap-orgmode)
|
||||||
(straight-use-package 'org)
|
(straight-use-package 'org)
|
||||||
|
(thwap/ensure-directory-exists "~/.org-agenda")
|
||||||
(setq browse-url-browser-function 'browse-url-generic
|
(setq browse-url-browser-function 'browse-url-generic
|
||||||
browse-url-generic-program "firefox-esr"
|
browse-url-generic-program "firefox-esr"
|
||||||
org-log-done 'time
|
org-log-done 'time
|
||||||
|
Loading…
Reference in New Issue
Block a user