mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
chore(packages): use straight-x-clean-unused-repos function from straight
This commit is contained in:
@@ -27,13 +27,7 @@
|
||||
(eval-print-last-sexp)))
|
||||
(load bootstrap-file nil 'nomessage))
|
||||
|
||||
;; https://github.com/raxod502/straight.el/issues/49#issuecomment-395979478
|
||||
(defun straight-x-clean-unused-repos ()
|
||||
(interactive)
|
||||
(dolist (repo (straight--directory-files (straight--repos-dir)))
|
||||
(unless (or (straight--checkhash repo straight--repo-cache)
|
||||
(not (y-or-n-p (format "Delete repository %S?" repo))))
|
||||
(delete-directory (straight--repos-dir repo) 'recursive 'trash))))
|
||||
(autoload 'straight-x-clean-unused-repos "straight-x" nil t)
|
||||
|
||||
(straight-use-package 'use-package)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user