-
Notifications
You must be signed in to change notification settings - Fork 150
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
How to use use-package preface along with straight.el #728
Comments
As I understand it, use-package's (progn
(straight-use-package
'(testtmux :type git :files
("modules/tools/tmux/autoload/tmux.el")
:host github :repo "hlissner/doom-emacs"))
(eval-and-compile
(defun doom-project-root nil
(projectile-project-root))
(defmacro quiet!
(&rest forms)
`(progn ,@forms)))
(require 'testtmux nil nil)) Notice that the |
Thanks for you response. This is actually not a bug report but a question. For the record, this is an edge use case. The problem here is that this is not real package(Not self contained or with dependencies declaration or with a There are some undefined functions/macros(which I defined later). I think straight byte compiled package files without knowledge which is a function and which is a function. Feel free to close this issue though. |
Is it also possible to solve your issue by moving the |
Nah, just tried. https://github.com/raxod502/straight.el/blob/develop/straight.el#L4837-L4838 straight.el starts a new emacs process for recipe byte-compilation. Thanks for this awesome package. Liked. |
Ah yes, good point. I had forgotten we made that change, which would indeed break this. I guess there could be a use case for providing to |
According to use-package document
https://github.com/jwiegley/use-package/blob/e6b4bf8458f94227ed64df6e8e873d147e42916f/use-package-core.el#L1560-L1562
Code defined in
preface
block can be seen by the byte-compiler.I want to use some autoload function from doom repo, but I keep getting
error
invalid function: quiet!
The text was updated successfully, but these errors were encountered: