aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-15 23:46:33 -0500
committerCraig Jennings <c@cjennings.net>2026-06-15 23:46:33 -0500
commiteb0ecfd34ae25460033bb96ff1afddcaca7a40f2 (patch)
tree4703f6ceeb4973ff1f7e23eaa27f7e8577b69b25 /Makefile
parent505da2c2d4881069d79ac59fb51f3947e3949fe8 (diff)
downloaddotemacs-eb0ecfd34ae25460033bb96ff1afddcaca7a40f2.tar.gz
dotemacs-eb0ecfd34ae25460033bb96ff1afddcaca7a40f2.zip
build: add task-sorted target to archive resolved todo tasks
make task-sorted wraps todo-cleanup.el --archive-done, moving DONE/CANCELLED level-2 subtrees from Open Work into Resolved. Ran it: archived this session's closed tasks.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7f4352c97..319977e88 100644
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,7 @@ EMACS_TEST = $(EMACS_BATCH) -L $(TEST_DIR) -L $(MODULE_DIR)
test-bash theme-studio-test theme-studio-check theme-studio-coverage theme-studio-gen theme-studio-open theme-studio-theme theme-studio-theme-load theme-studio-theme-reload deploy-wip \
benchmark coverage coverage-summary coverage-clean \
validate-parens validate-modules compile compile-file lint profile \
+ task-sorted \
clean clean-compiled clean-tests reset
# Alias for help
@@ -457,6 +458,13 @@ profile:
--eval "(profile-dotemacs)"; \
fi
+# Move completed tasks (DONE/CANCELLED level-2 subtrees) out of "Open Work"
+# and into the "Resolved" section of todo.org. Wraps todo-cleanup.el's
+# --archive-done; a no-op when nothing is in a closed state.
+task-sorted:
+ @echo "Archiving resolved tasks in todo.org..."
+ @$(EMACS) --batch -q -l .ai/scripts/todo-cleanup.el --archive-done todo.org
+
clean: clean-tests clean-compiled
@echo "✓ Clean complete"