Use XDG_CONFIG_HOME to find the lem configuration directory.#960
Merged
cxxxr merged 1 commit intolem-project:mainfrom Aug 18, 2023
Merged
Use XDG_CONFIG_HOME to find the lem configuration directory.#960cxxxr merged 1 commit intolem-project:mainfrom
cxxxr merged 1 commit intolem-project:mainfrom
Conversation
seanfarley
reviewed
Aug 17, 2023
src/config.lisp
Outdated
| (defun lem-home () | ||
| (or (uiop:getenv "LEM_HOME") | ||
| (merge-pathnames ".lem/" (user-homedir-pathname)))) | ||
| (uiop:xdg-config-home "lem/"))) |
Collaborator
There was a problem hiding this comment.
This should fall back to using ~/.lem so that current users aren't caught off-guard, right?
Contributor
Author
There was a problem hiding this comment.
I changed the logic to take .lem if it exists first and fallback to xdg-config + 'lem/' if that doesn't already exist. Thoughts?
Member
|
Maybe we can support both? Like in GNU Emacs https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html |
cd13779 to
1776c27
Compare
1776c27 to
c94093a
Compare
Member
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#434