From 871efdce08eaa36c5163335e45442e1a5e68d907 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 7 Sep 2024 18:05:19 -0400 Subject: [PATCH] refactor: windows: move doom dirs to %LOCALAPPDATA% More appropriate location for these files on Windows than %APPDATA%. --- lisp/doom.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/doom.el b/lisp/doom.el index 247877af9..40298c768 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -270,7 +270,7 @@ These files should not be shared across systems. By default, it is used by (defvar doom-data-dir (if doom-profile (if doom--system-windows-p - (expand-file-name "doomemacs/data/" (getenv-internal "APPDATA")) + (expand-file-name "doomemacs/data/" (getenv-internal "LOCALAPPDATA")) (expand-file-name "doom/" (or (getenv-internal "XDG_DATA_HOME") "~/.local/share"))) ;; DEPRECATED: .local will be removed entirely in 3.0 (file-name-concat doom-local-dir "etc/")) @@ -289,7 +289,7 @@ For profile-local data files, use `doom-profile-data-dir' instead.") (defvar doom-cache-dir (if doom-profile (if doom--system-windows-p - (expand-file-name "doomemacs/cache/" (getenv-internal "APPDATA")) + (expand-file-name "doomemacs/cache/" (getenv-internal "LOCALAPPDATA")) (expand-file-name "doom/" (or (getenv-internal "XDG_CACHE_HOME") "~/.cache"))) ;; DEPRECATED: .local will be removed entirely in 3.0 (file-name-concat doom-local-dir "cache/")) @@ -308,7 +308,7 @@ For profile-local cache files, use `doom-profile-cache-dir' instead.") (defvar doom-state-dir (if doom-profile (if doom--system-windows-p - (expand-file-name "doomemacs/state/" (getenv-internal "APPDATA")) + (expand-file-name "doomemacs/state/" (getenv-internal "LOCALAPPDATA")) (expand-file-name "doom/" (or (getenv-internal "XDG_STATE_HOME") "~/.local/state"))) ;; DEPRECATED: .local will be removed entirely in 3.0 (file-name-concat doom-local-dir "state/"))