From 82a47d789f5c43a1173fbac538cb3128d7816882 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sat, 8 Jan 2022 02:30:34 +0100 Subject: [PATCH] config/doom/config: ignore missing org directory --- .config/doom/config.el | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index dd31809..1da5c92 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -180,7 +180,8 @@ Version 2019-11-04 2021-02-16" (if (file-exists-p box) (setq org-directory box default-directory org-directory - org-roam-directory org-directory)) + org-roam-directory org-directory + org-agenda-files (directory-files-recursively org-directory "\\`[^.]*\\'" 't))) ) (use-package! recentf @@ -279,13 +280,6 @@ Version 2019-11-04 2021-02-16" org-log-into-drawer t org-treat-insert-todo-heading-as-state-change t) - (setq org-agenda-files (directory-files-recursively org-directory "\\`[^.]*\\'" 't)) - ;(apply 'append - ; (mapcar - ; (lambda (directory) (directory-files-recursively (expand-file-name directory user-data-dir) org-agenda-file-regexp)) - ; '("1-projects" "2-standards") - ; ))) - ;; https://stackoverflow.com/a/32353255/6723250 (defun org-convert-csv-table (beg end) ;; convert csv to org-table considering "12,12"