diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-13 15:25:52 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-13 15:25:52 -0500 |
| commit | 128244f9c8ed80a4a2ff21bcb2660714e990b6c6 (patch) | |
| tree | 98622df692085b6cf63fc0ad564d6f65cca79dda /init.el | |
| parent | a34c66e7fadef895e149c75e6805800177c6cb42 (diff) | |
| download | dotemacs-128244f9c8ed80a4a2ff21bcb2660714e990b6c6.tar.gz dotemacs-128244f9c8ed80a4a2ff21bcb2660714e990b6c6.zip | |
feat(org-agenda): use project name as todo.org category
The %c column on agenda blocks rendered every project's todo.org as "todo:" -- org defaults the buffer category to the filename without extension, so every entry looked alike. An org-mode-hook now overrides org-category with the parent directory's basename (stripping a single leading dot, so ~/.emacs.d/todo.org reads as "emacs.d") whenever a todo.org file opens and its category is still the filename default. Explicit #+CATEGORY: keywords still win.
14 tests in test-org-agenda-config-category.el cover the helper's normal/boundary/error paths and the hook's override + explicit-category-preserved cases.
Diffstat (limited to 'init.el')
0 files changed, 0 insertions, 0 deletions
