config/doom: localize org-agenda config

This commit is contained in:
xeruf 2022-04-10 11:36:57 +02:00
parent 62de086fe2
commit 38c2f48a55
2 changed files with 7 additions and 4 deletions

View File

@ -180,10 +180,6 @@ Version 2019-11-04 2021-02-16"
(setq backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/"))) (setq backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/")))
custom-emacs-data-dir (expand-file-name "data" doom-private-dir)) custom-emacs-data-dir (expand-file-name "data" doom-private-dir))
(if (and org-directory (file-exists-p org-directory))
(setq default-directory org-directory
org-agenda-files (append (directory-files-recursively (expand-file-name "project/") "\\`[^.]*\\'" 't) (list (expand-file-name "inbox/")))))
(use-package! projectile (use-package! projectile
:init :init
(add-to-list 'projectile-ignored-projects (expand-file-name user-data-dir)) (add-to-list 'projectile-ignored-projects (expand-file-name user-data-dir))

View File

@ -12,6 +12,13 @@
)) ))
) )
(if (and org-directory (file-exists-p org-directory))
(setq default-directory org-directory
org-agenda-files (append
(directory-files-recursively (expand-file-name "project/") "\\`[^.]*\\'" 't)
(list (expand-file-name "inbox/"))
)))
(use-package! recentf (use-package! recentf
:config :config
(add-to-list 'recentf-exclude "writing\\/tug") (add-to-list 'recentf-exclude "writing\\/tug")