From 43022b56569717f28fa16284f7092f2bbe0830ad Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 16 May 2026 12:20:44 -0500 Subject: 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/ 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. --- modules/pdf-config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pdf-config.el') diff --git a/modules/pdf-config.el b/modules/pdf-config.el index 3835eaa8..cc32f62b 100644 --- a/modules/pdf-config.el +++ b/modules/pdf-config.el @@ -65,7 +65,7 @@ :hook (pdf-view-mode . pdf-view-restore-mode) :config - (setq pdf-view-restore-filename (concat user-emacs-directory "/.pdf-view-restore"))) + (setq pdf-view-restore-filename (expand-file-name "persist/pdf-view-restore" user-emacs-directory))) (provide 'pdf-config) ;;; pdf-config.el ends here. -- cgit v1.2.3