-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider following the XDG base-dir specification #224
Comments
XDG directory structure is not portable to Microsoft Windows. Not against a PR for this work, per se, but would prefer a flag to turn it on or off at the users preference. Consider the comments in #176 . People are pretty used to having all of their Emacs configuration contained in the |
I should have search the existing issues!
I guess that depends on whether or not you agree with this interpretation. Either way, I agree that this functionality should exist behind a flag given its divergence from emacs history. After seeing the discussion in other issues I think I could tackle a pull request this weekend for review. |
I look forward to your PR. You might consider looking into the built-in |
Is there any work going on this? It would been great to have this in Crafted-Emacs. |
I thought @nspaeth was working on a PR, haven't seen anything come in, and I'm not working on it personally. |
Closing in anticipation of Crafted Emacs V2. |
Consider following the The XDG base-dir specification more closely, which defines the following environment variables:
$XDG_DATA_HOME
- user-specific data files default:$HOME/.local/share
$XDG_CONFIG_HOME
- user-specific configuration files default:$HOME/.config
$XDG_CONFIG_HOME/crafted-emacs
$XDG_STATE_HOME
user-specific state data default:$HOME/.local/state
contains state data that should persist between (application) restarts, but that is not important or portable enough to the user that it should be stored in
$XDG_DATA_HOME
. It may contain:$XDG_CACHE_HOME
- user-specific non-essential (cached) data default:*$HOME/.cache
.elc
files?$XDG_RUNTIME_DIR
- user-specific runtime files and other file objects default:$HOME/.local/bin
files?
My
$XDG_CONFIG_HOME/crafted-emacs/
currently contains the directoriesvar/
elpa/
andetc/
, which could be symlinked to their XDG counterparts.I feel like following this specification and other standards, although not explicitly stated, aligns with the spirit of this project. I also think that it would make it easier for people to ignore non-essential files in their backups or version-controlled configs.
The text was updated successfully, but these errors were encountered: