Skip to content

Instantly share code, notes, and snippets.

@nlamirault
Last active August 29, 2015 14:03
Show Gist options
  • Save nlamirault/85fc2fda3cf1c8ecbe3e to your computer and use it in GitHub Desktop.
Save nlamirault/85fc2fda3cf1c8ecbe3e to your computer and use it in GitHub Desktop.
Retrieve installed packages
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