Closed jroimartin closed 3 months ago
Thanks, @jroimartin can you see why the tests are failing ?
Sure, I'm working on it.
@psibi PTAL. I think this is the smallest required change. On the flip side, it is a bit tricky. But having two major modes with the same name and loading them conditionally seems problematic. So, I opted for allowing the stub function (called rust-mode
) to be redefined when the actual mode gets loaded.
Thanks, LGTM. @condy0919 Can you see if it works in your setup too ? I will test drive this PR too.
Thanks, LGTM. @condy0919 Can you see if it works in your setup too ? I will test drive this PR too.
Sorry, I'm in a touring🥺 can't help that
No rush. There is a valid workaround which is just adding (require 'rust-mode)
to init.el
. It is just that it is nice to support lazy loading :slightly_smiling_face: This change also make rust-mode
just work for people using plain package.el
.
No worries, I'm also going to be on travel for the next two days. I will test this out more properly after that.
@psibi @condy0919 what do you think of db7d086? This option does not require messing up with the rust-mode
function definition.
@psibi @condy0919 what do you think of db7d086? This option does not require messing up with the
rust-mode
function definition.
This solution comes to mind at first, and the trick is used in the evil-exchange package.
I did some testing and this seems to work fine. @jroimartin Thanks for the PR. @condy0919 Thanks for testing and review.
This PR fixes the following error that happends when opening a .rs file:
It conditionally autoloads the proper rust-mode version depending on the user environment.
Fixes #528