-
Notifications
You must be signed in to change notification settings - Fork 179
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
Remove autoload might break the straight-use-package-mode
#527
Comments
Also raised the question to |
Related: #528 |
;; in rust-mode.el ...
;;;###autoload
(autoload 'rust-mode "rust-mode.el" nil t) It will generate an |
@ccqpein Can you check if this PR by @jroimartin fixes it for you: #530 ? |
@psibi I just try and it fixes the I might find sometime to study how the |
Figure out it works. Thanks for @jroimartin 's PR |
I found the latest
rust-mode
cannot load successfully by myuse-package
(turned on thestraight.el
use-package
integrated).After some investigating, I found the PR #526 remove the
;;;###autoload
ofrust-mode
. It causesstraight-use-package
cannot find therust-mode
function. (I guess it doesn't load therust-mode.el
when it initing?)After more playing around, there are several behaviors were revealed.
(load "~/.emacs.d/straight/repos/rust-mode/rust-mode.el")
in*scratch*
buffer. I can callM-x rust-mode
. ButM-x straight-use-package
cannot find therust-mode
(autoload 'rust-mode "rust-mode" nil t)
in*scratch*
buffer. It does the same thing as1.
.rust-mode.el
inuse-package
:init
step. It works fine. Furthermore, if I(setq rust-mode-treesitter-derive t)
before in:init
before loading, it will in treesitter mode as master branch code is designed to do.I haven't raised up the solution of this issue. I guess it is the
autoload
is necessary forstraight.el
. I am going to report this to them.The text was updated successfully, but these errors were encountered: