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

Not able to use treesitter derived mode with straight #541

Open
xofyarg opened this issue Apr 24, 2024 · 1 comment
Open

Not able to use treesitter derived mode with straight #541

xofyarg opened this issue Apr 24, 2024 · 1 comment

Comments

@xofyarg
Copy link

xofyarg commented Apr 24, 2024

Given the following config, straight will byte compile the package, and generate an autoload file. The autoload file pulls in rust-prog-mode unconditionally. I'm not sure how to workaround this, maybe wrap the file content with a runtime check?

(setq straight-use-package-by-default t)
(use-package rust-mode
  :init
  (setq rust-mode-treesitter-derive t))
$ cat rust-mode-autoloads.el
...
;;; Generated autoloads from rust-prog-mode.el

(register-definition-prefixes "rust-prog-mode" '("rust-"))
...
@psibi
Copy link
Member

psibi commented May 15, 2024

I'm not sure how straight works to comment on this. But I would be happy to accept a documentation PR if you have found a workaround for this ?

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

No branches or pull requests

2 participants