aboutsummaryrefslogtreecommitdiff
path: root/modules/org-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-16 12:20:44 -0500
committerCraig Jennings <c@cjennings.net>2026-05-16 12:20:44 -0500
commit43022b56569717f28fa16284f7092f2bbe0830ad (patch)
tree0f3175c91a4441a7cdb694d11a94dff8cfec11f3 /modules/org-config.el
parentef9cc3bf47a7a197d5950606d9af6f5371c836db (diff)
downloaddotemacs-43022b56569717f28fa16284f7092f2bbe0830ad.tar.gz
dotemacs-43022b56569717f28fa16284f7092f2bbe0830ad.zip
refactor: consolidate runtime state into persist/
Six previously-scattered runtime state files now live under persist/ in user-emacs-directory: - theme-file (was .emacs-theme) - pdf-view-restore-filename (was .pdf-view-restore) - time-zones--city-list-file (was .time-zones.el) - calendar-sync--state-file (was data/calendar-sync-state.el) - prescient-save-file (was var/prescient-save.el) - org-id-locations-file (was .org-id-locations) The defaults in each module now expand to persist/<name> instead of the user-emacs-directory root or ad-hoc subdirs. Existing files moved into persist/ alongside this change so the next launch picks up the state without regenerating. test-ui-theme-default-theme-file-is-emacs-dotfile renamed to test-ui-theme-default-theme-file-is-under-persist and updated to assert the new default path. lsp-session-file is left at the root for now -- prog-lsp.el has no (require) reference anywhere, so the use-package block that would carry the redirect never runs. Tier 3 follow-up: confirm the module is dead, then delete it or wire it into the load chain. The var/ directory is now empty and removed. data/ retains the calendar agenda content (dcal/gcal/pcal.org) and the .rest API examples -- content, not state, stays where it is.
Diffstat (limited to 'modules/org-config.el')
-rw-r--r--modules/org-config.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/org-config.el b/modules/org-config.el
index 20160d7d..c04683c0 100644
--- a/modules/org-config.el
+++ b/modules/org-config.el
@@ -25,6 +25,8 @@
(setq org-startup-folded t) ;; all org files should start in the folded state
(setq org-cycle-open-archived-trees t) ;; re-enable opening headings with archive tags with TAB
(setq org-cycle-hide-drawers 'all) ;; collapse :PROPERTIES: drawers when a heading folds
+ (setq org-id-locations-file
+ (expand-file-name "persist/org-id-locations" user-emacs-directory))
(setopt org-outline-path-complete-in-steps nil)
(setq org-return-follows-link t) ;; hit return to follow an org-link
(setq org-list-allow-alphabetical t) ;; allow alpha ordered lists (i.e., a), A), a., etc.)