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

Add note about Emacs package just-mode #759

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

leon-barrett
Copy link
Contributor

I added an Emacs package for editing justfiles, just-mode, and I thought it might be worth including in the README file.

@casey casey merged commit 5f3f4de into casey:master Mar 12, 2021
@casey
Copy link
Owner

casey commented Mar 12, 2021

That's so cool! Thanks so much for writing it!

This is very cool! So if you edit a recipe in a justfile that uses differently configured tabs, it will insert the pre-existing indent?

@leon-barrett
Copy link
Contributor Author

Thanks. It's not quite as cool as you make it sound--it's more like, while you're in a rule, it'll keep matching the indent of the previous line. When you start a new rule, it'll just use the default 4 spaces.

I believe that's helpful for writing things like Python scripts where you want varying levels of indentation within a rule. It's not super graceful, but it does something at least. (That's why there's a TODO to use nested modes for better scripting, but it's still a TODO because honestly just getting the syntax highlighting nice was hard enough for now.)

@leon-barrett leon-barrett deleted the leon/just-mode branch March 12, 2021 04:59
@casey
Copy link
Owner

casey commented Mar 12, 2021

Still very nice. "It does something at least" is often the best that one can hope for!

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