We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
An Emacs menu for Justfiles
2025-05-04 ・ magit, emacs, justfile, tip
Justfiles, as an alternative to Makefiles, have grown a lot in popularity. I use them for projects and at work. A common pattern for things like this (e.g. Cargo, Mix, etc) is to have a transient menu to run commands quickly.
With a little AI assistance, I now have one1 that I use daily at work.
It (just-transient--make-transient
) looks for a Justfile, and if it finds one, it creates a simple list of the recipes, with auto-generated prefixes that don’t clash. There’s 2 backends, one for a Vterm shell, and the other for Compilation Mode.
Here’s an example:
Feel free to use this approach!