chore(deps): use built-in use-package if available

use-package was recently added to Emacs itself. Hence if it is
available, do not separately install the package from a package source.
This commit is contained in:
2023-05-23 23:07:53 +01:00
parent 08787800a3
commit 763955452c

View File

@@ -47,8 +47,10 @@
(add-to-list 'straight-x-pinned-packages
`(,package . ,gitsha)))
;; Make use-package available.
(straight-use-package 'use-package)
;; Ensure use-package available, only installing it if it not included with the
;; current Emacs version.
(if (not (fboundp 'use-package))
(straight-use-package 'use-package))
;; Make general.el keybinding helpers available.
(use-package general)