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

Support various types of local values #189

Open
3 tasks
tarsius opened this issue Feb 9, 2022 · 2 comments
Open
3 tasks

Support various types of local values #189

tarsius opened this issue Feb 9, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@tarsius
Copy link
Member

tarsius commented Feb 9, 2022

@Silex
Copy link

Silex commented Feb 11, 2022

Hello,

FYI projectile uses .dir-locals.el, so something that works with it sounds logical.

Maybe I'm stupid but isn't this as simple as putting the content of transient-values into that file? So when it loads it sets transient-values and we are good to go?

The only drawback is that you can only transient-save one global set of values and if you want to modify this project values you have to edit .dir-lcoals.el manually.

@tarsius tarsius added the enhancement New feature or request label Sep 14, 2022
@johnhamelink
Copy link

johnhamelink commented Apr 26, 2023

I was able to set the docker-compose directory with a .dir-locals file by:

  • Running the transient command and setting the flags as I wish them to be
  • C-x s to set (but not save) the values
  • C-g to exit the transient window
  • C-h v transient-values to extract the values set in the previous steps

My resultant .dir-locals looks like this:

((nil . ((transient-values
          . ((docker-compose "--project-directory ~/code/work/repo/"))))))

I hope that's helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants