Open tarsius opened 2 years ago
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.
I was able to set the docker-compose directory with a .dir-locals
file by:
C-x s
to set (but not save) the valuesC-g
to exit the transient windowC-h v transient-values
to extract the values set in the previous stepsMy resultant .dir-locals looks like this:
((nil . ((transient-values
. ((docker-compose "--project-directory ~/code/work/repo/"))))))
I hope that's helpful!
Such as: