-
Notifications
You must be signed in to change notification settings - Fork 189
Closed
Description
I found the latest rust-mode cannot load successfully by my use-package (turned on the straight.el use-package integrated).
After some investigating, I found the PR #526 remove the ;;;###autoload of rust-mode. It causes straight-use-package cannot find the rust-mode function. (I guess it doesn't load the rust-mode.el when it initing?)
After more playing around, there are several behaviors were revealed.
- if I
(load "~/.emacs.d/straight/repos/rust-mode/rust-mode.el")in*scratch*buffer. I can callM-x rust-mode. ButM-x straight-use-packagecannot find therust-mode - if I
(autoload 'rust-mode "rust-mode" nil t)in*scratch*buffer. It does the same thing as1.. - If I load
rust-mode.elinuse-package:initstep. It works fine. Furthermore, if I(setq rust-mode-treesitter-derive t)before in:initbefore 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 for straight.el. I am going to report this to them.
cwedgwood
Metadata
Metadata
Assignees
Labels
No labels