Last active
August 29, 2015 14:03
-
-
Save nlamirault/85fc2fda3cf1c8ecbe3e to your computer and use it in GitHub Desktop.
Retrieve installed packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ELISP> (dolist (package-details package-alist) | |
(let ((pkg (cadr package-details))) | |
(print (format "(depends-on \"%s\" \"%s.%s\")" | |
(package-desc-name pkg) | |
(car (package-desc-version pkg)) | |
(cadr (package-desc-version pkg)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment