Skip to content
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

Promote justl--justfile to a safe, local defcustom #33

Conversation

johnhamelink
Copy link
Contributor

This PR aims to make the justfile variable configurable from a .dir-locals.el file:

I currently have a project made up of many microservices which each have their own directory, along with a directory containing a justfile. I want to be able to call the justfile from any directory under the .dir-locals.el file at project root.

Before, I was doing this reliably by setting:

((nil . ((justl--justfile . "/home/john/code/work/utils/development/justfile"))))

But I would receive safe variable warnings that I couldn't figure out how to suppress without making changes to the package.

@johnhamelink johnhamelink force-pushed the feature/make-justl-justfile-a-safe-buffer-local-var branch from 86c5498 to 1feb09e Compare June 4, 2023 17:45
@johnhamelink johnhamelink force-pushed the feature/make-justl-justfile-a-safe-buffer-local-var branch from 86c5498 to 127c29c Compare June 4, 2023 18:53
@johnhamelink johnhamelink changed the title Promote justl--justfile to a safe, public var Promote justl--justfile to a safe, local defcustom Jun 5, 2023
@johnhamelink
Copy link
Contributor Author

johnhamelink commented Jun 8, 2023

@psibi I see the latest CI ran failed because my changes are incompatible with 26.3. I've never had to deal with compatibility issues in Emacs before so I'm not sure how best to address this in way that's neat, idiomatic & acceptable. Do you have any suggestions?

@psibi
Copy link
Owner

psibi commented Jun 8, 2023

@johnhamelink I don't mind dropping 26.3 support.

@johnhamelink
Copy link
Contributor Author

@psibi I've replaced Emacs 26 support with emacs-release-snapshot

@psibi psibi merged commit 30ab3e8 into psibi:master Jun 11, 2023
@psibi
Copy link
Owner

psibi commented Jun 11, 2023

Thank you!

@johnhamelink johnhamelink deleted the feature/make-justl-justfile-a-safe-buffer-local-var branch June 11, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants