feat(emacs): Persist data and cache dirs

This will now persist the project list.
This commit is contained in:
Madeleine Sydney
2025-02-17 02:51:21 -07:00
parent 3ccbb5a012
commit 276cd7fbec

View File

@@ -61,9 +61,12 @@ let
emacsclient --alternate-editor=${emacsWrapper}/bin/emacs "$@"
'';
in {
sydnix.impermanence.cache.directories = [
sydnix.impermanence.cache.directories =
# Impermanence expects the path to be relative to ~.
(lib.removePrefix config.home.homeDirectory straightBaseDir)
map (lib.removePrefix config.home.homeDirectory) [
straightBaseDir
emacsCacheDir
emacsDataDir
];
# Set emacsclient as the default editor for the time being.