fix(lib): package! error from doom/bump-* commands

package! complains that "package! can only be used in packages.el
files".

Amend: 4efaf6837b
Amend: f9201eb218
This commit is contained in:
Henrik Lissner 2022-09-25 19:16:48 +02:00
parent d362490d45
commit 39b8934236
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -48,7 +48,10 @@
(buffer-file-name
(or buffer-file-name
(bound-and-true-p org-src-source-file-name)))
(package (eval (sexp-at-point) t)))
(package
(doom-context-with 'packages
(doom-module-context-with (doom-module-from-path buffer-file-name)
(eval (sexp-at-point) t)))))
(list :beg beg
:end end
:package (car package)