From 0f03364c1f61d4f1602337771dec0455f9afe611 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 11 Jul 2026 15:52:24 -0500 Subject: refactor(org-agenda): move timegrid setting to its owner, drop dead timeline org-agenda-timegrid-use-ampm lived in org-roam's :config, so it only took effect once org-roam loaded at its 1s defer. I moved it into org-agenda's own :config beside the other agenda display settings, and dropped the now-unused defvar from org-roam. I also removed the timeline entry from org-agenda-prefix-format. The timeline agenda type was removed from org in 9.1, so the entry was inert. --- modules/org-agenda-config.el | 2 +- modules/org-roam-config.el | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/org-agenda-config.el b/modules/org-agenda-config.el index 207c286e..d4407b28 100644 --- a/modules/org-agenda-config.el +++ b/modules/org-agenda-config.el @@ -50,10 +50,10 @@ :demand t :config (setq org-agenda-prefix-format '((agenda . " %i %-25:c%?-12t% s") - (timeline . " % s") (todo . " %i %-25:c") (tags . " %i %-12:c") (search . " %i %-12:c"))) + (setq org-agenda-timegrid-use-ampm t) ;; show the agenda time grid in 12-hour am/pm (setq org-agenda-dim-blocked-tasks 'invisible) (setq org-agenda-skip-scheduled-if-done nil) (setq org-agenda-remove-tags t) diff --git a/modules/org-roam-config.el b/modules/org-roam-config.el index 4e360bd7..867f2d99 100644 --- a/modules/org-roam-config.el +++ b/modules/org-roam-config.el @@ -34,7 +34,6 @@ ;; External variables, declared special so byte-compilation doesn't treat them ;; as free references/assignments. Owned by org and org-roam-dailies. -(defvar org-agenda-timegrid-use-ampm) (defvar org-roam-dailies-map) (defvar org-last-state) @@ -98,7 +97,6 @@ FILETAGS and TITLE must sit on separate lines so Org parses the ("C-M-i" . completion-at-point)) :config ;; org-log-done is set once in org-config.el (cj/org-todo-settings). - (setq org-agenda-timegrid-use-ampm t) ;; Don't build the org-refile targets cache here. org-refile-config.el ;; already schedules it on a 5s idle timer; doing it in org-roam's :config -- cgit v1.2.3