-
Notifications
You must be signed in to change notification settings - Fork 67
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 a function for running cargo expand #82
base: master
Are you sure you want to change the base?
Conversation
This attempts to expand just the currently visited file by looking at the base directory it lives in relative to the project root.
1007a77
to
6a9fc42
Compare
This will allow you to see better error messages for certain kinds of expansion errors.
6a9fc42
to
8c3ed3e
Compare
I settled for actually visiting a file with the same name as the current filename + |
You could use Emacs Overlays. This command takes the entire buffer, and expands it? In that case something like..
And then add a key command (typically
Not sure if this is a proper solution though. |
@RadicalZephyr I actually like what https://github.com/joddie/macrostep does. |
Expand is really useful for writing macros.
I think it would be neat to have the output buffer be a temporary that was in Rust-mode so that you could get proper syntax highlighting, but I'm not sure of the best way to do that. Any thoughts?