config/doom/config: ignore missing org directory

This commit is contained in:
xeruf 2022-01-08 02:30:34 +01:00
parent 783cfdbfe3
commit 82a47d789f
1 changed files with 2 additions and 8 deletions

View File

@ -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"