aboutsummaryrefslogtreecommitdiff
path: root/modules/ui-theme.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
commit49e6dc25f31af9ce35dae7c7ca541491e7035209 (patch)
tree655538b60526f0b018b4dc744d06b2e3433fbbd6 /modules/ui-theme.el
parenta9a197f62ea84e4d87477bce1f72404fa2d80750 (diff)
downloaddotemacs-49e6dc25f31af9ce35dae7c7ca541491e7035209.tar.gz
dotemacs-49e6dc25f31af9ce35dae7c7ca541491e7035209.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/ui-theme.el')
-rw-r--r--modules/ui-theme.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui-theme.el b/modules/ui-theme.el
index f84d72316..bcc585753 100644
--- a/modules/ui-theme.el
+++ b/modules/ui-theme.el
@@ -48,7 +48,7 @@ Unloads any other applied themes before applying the chosen theme."
"Theme persistence settings."
:group 'faces)
-(defcustom theme-file (expand-file-name ".emacs-theme" user-emacs-directory)
+(defcustom theme-file (expand-file-name "persist/emacs-theme" user-emacs-directory)
"The location of the file to persist the theme name.
If you want your theme change to persist across instances, put this in a
directory that is sync'd across machines with this configuration."