From 1e972e2c2ee8ed90f905baa2d1ed6ddb0e257bed Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Mon, 13 May 2024 22:54:14 +0300 Subject: [PATCH] emacs: fix agenda --- .emacs.d/init.el | 42 +++++++++++++++++++++++------------------- Emacs.org | 44 +++++++++++++++++++++++++------------------- 2 files changed, 48 insertions(+), 38 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 2c47ba8..47e14a2 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -3557,10 +3557,13 @@ With ARG, repeats or can move backward if negative." (not (file-directory-p f)))))))) (setq org-agenda-files (seq-filter #'file-exists-p - `("inbox.org" - "misc/habit.org" - "contacts.org" - ,@project-files))) + (append + project-files + (mapcar (lambda (f) + (concat org-directory "/" f)) + '("inbox.org" + "misc/habit.org" + "contacts.org"))))) (setq org-refile-targets `(,@(mapcar (lambda (f) `(,f . (:tag . "refile"))) @@ -4351,7 +4354,7 @@ KEYS is a list of cons cells like (