Skip to content

Commit

Permalink
pam; debug that we mark package as built-in
Browse files Browse the repository at this point in the history
  • Loading branch information
semenInRussia committed Jun 18, 2024
1 parent b43331d commit 6745c84
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lisp/package-management/my-pam.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@
"My mark all built-in packages as built-in for `straight' and `pam'."
(let ((xs my-built-in-packages))
(while xs
(message "Mark the package %s" (car xs))
(pam-use-package `(,(car xs)
:type built-in))
(setq xs (cdr xs)))))

(advice-add 'pam--load-straight
:around
(defun my-pam-maybe-mark-built-ins (&rest args)
(let ((need-p (not pam-straight-already-loaded-p)))
(apply args)
(and need-p
(my-pam-mark-built-ins)))))
(with-eval-after-load 'pam
(advice-add 'pam--load-straight
:around
(defun my-pam-maybe-mark-built-ins (&rest args)
(let ((need-p (not pam-straight-already-loaded-p)))
(apply args)
(and need-p
(my-pam-mark-built-ins))))))

;;; my-pam.el ends here

0 comments on commit 6745c84

Please sign in to comment.