From 38c2f48a55bd7d3bd76ab79b885f99d862bef3f5 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 10 Apr 2022 11:36:57 +0200 Subject: [PATCH] config/doom: localize org-agenda config --- .config/doom/config.el | 4 ---- .config/doom/user.el##user.janek | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index 7ebf893..47f842b 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -180,10 +180,6 @@ Version 2019-11-04 2021-02-16" (setq backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/"))) 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 :init (add-to-list 'projectile-ignored-projects (expand-file-name user-data-dir)) diff --git a/.config/doom/user.el##user.janek b/.config/doom/user.el##user.janek index c428210..3ecca9b 100644 --- a/.config/doom/user.el##user.janek +++ b/.config/doom/user.el##user.janek @@ -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 :config (add-to-list 'recentf-exclude "writing\\/tug")